/* 登录模态框样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    background-color: white;
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 30px;
    position: relative;
    animation: slideUp 0.4s ease;
}

.login-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: color 0.3s;
}

.login-close:hover {
    color: var(--primary-color);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.login-tab.active {
    color: var(--primary-color);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106,90,205,0.2);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    flex-grow: 1;
}

.send-code-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
}

.send-code-btn:hover {
    background-color: #5a4cb3;
}

.send-code-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 5px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), #8A4FFF);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(106,90,205,0.3);
}

.login-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(106,90,205,0.4);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

.register-link a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.agreement-checkbox {
    margin: 15px 0;
}
.agreement-checkbox .checkbox-label {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}
.agreement-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.agreement-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 登录模态框状态类 */
.login-modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
} 