﻿:root {
    --tcm-primary: #D87C1F;
    --tcm-secondary: #E99D5C;
    --tcm-light: #FDF0E4;
    --tcm-accent: #E9B15F;
}

body.login-page {
    background-color: #fcf9f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.login-card {
    max-width: 450px;
    border-radius: 16px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-logo {
    font-size: 2.5rem;
    color: var(--tcm-primary);
}

.card-body {
    padding: 30px;
}

.login-title {
    font-weight: 700;
    color: var(--tcm-primary);
    margin-bottom: 5px;
}

.login-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid var(--tcm-light);
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: var(--tcm-accent);
        box-shadow: 0 0 0 0.25rem rgba(216, 124, 31, 0.15);
    }

.form-label {
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.25rem;
    background: none;
    border: none;
    padding: 0 8px;
    z-index: 5;
}

#passwordField {
    padding-right: 50px;
}

/* 主要修改点：优化按钮悬停效果 */
.btn-tcm {
    background: linear-gradient(to right, var(--tcm-primary), var(--tcm-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    font-size: 1.1rem;
    /* 添加3D效果提升视觉稳定性 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-tcm:hover {
        /* 保持渐变背景不变，避免颜色突变 */
        background: linear-gradient(to right, var(--tcm-primary), var(--tcm-secondary));
        color: white !important;
        /* 优化阴影效果，避免视觉跳跃 */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        /* 添加微妙的缩放效果替代位移 */
        transform: scale(1.02);
    }

    /* 添加按钮激活状态 */
    .btn-tcm:active {
        transform: scale(0.98);
    }

.login-options-container {
    margin-top: 25px;
}

.login-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: var(--tcm-light);
    border: 1px solid #f0e6db;
    font-size: 0.9rem;
    white-space: nowrap;
    margin: 5px;
}

    .login-option:hover {
        background-color: #f8e9d8;
        color: var(--tcm-primary);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .login-option i {
        margin-right: 5px;
        color: var(--tcm-primary);
    }

.wechat-divider {
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #f0e6db;
}

.divider-text {
    padding: 0 10px;
    color: #888;
    font-size: 0.9rem;
}

.wechat-login-btn {
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07C160, #06AD56);
    color: white !important;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.3);
    border: none;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
}

    .wechat-login-btn:hover {
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(7, 193, 96, 0.4);
        text-decoration: none;
    }

    .wechat-login-btn i {
        font-size: 1.5rem;
        margin-right: 10px;
        transition: transform 0.3s ease;
    }

    .wechat-login-btn:hover i {
        transform: scale(1.1);
    }

.wechat-info {
    color: #666;
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
}

.form-check-input:checked {
    background-color: var(--tcm-primary);
    border-color: var(--tcm-primary);
}

.form-check-label {
    color: #555;
}

.spinner-container {
    display: inline-block;
    width: 1.5rem;
    margin-left: 0.5rem;
}

.verification-input {
    padding-right: 120px;
}

.send-code-btn {
    position: absolute;
    right: 1px;
    top: 1px;
    height: calc(100% - 2px);
    border-radius: 0 50px 50px 0;
    min-width: 110px;
    background: var(--tcm-light);
    border: 1px solid var(--tcm-light);
    color: var(--tcm-primary);
    font-weight: 500;
    transition: all 0.3s;
}

    .send-code-btn:hover {
        background: #f8e9d8;
        color: var(--tcm-primary);
        border-color: var(--tcm-accent);
    }

    .send-code-btn:disabled {
        background: #f0f0f0;
        color: #999;
        cursor: not-allowed;
    }

.input-group-verification {
    position: relative;
}



/* 密码强度指示器 */
.password-strength {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

    .password-strength::after {
        content: '';
        display: block;
        height: 100%;
        width: 0;
        background-color: #dc3545;
        transition: width 0.3s, background-color 0.3s;
    }

    .password-strength.weak::after {
        width: 33%;
        background-color: #dc3545;
    }

    .password-strength.medium::after {
        width: 66%;
        background-color: #fd7e14;
    }

    .password-strength.strong::after {
        width: 100%;
        background-color: #28a745;
    }

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.25rem;
    background: none;
    border: none;
    padding: 0 8px;
    z-index: 5;
}

.reset-title {
    font-weight: 700;
    color: var(--tcm-primary);
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    body.login-page {
        padding: 10px;
        background-color: white;
    }

    .login-card {
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .card-body {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-option {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .form-control, .btn-tcm {
        padding: 10px 18px;
    }

    .wechat-login-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .login-options-container {
        margin-top: 20px;
    }

    .login-options {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .login-card {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-options {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}
