/* ==================== 认证页面样式 ==================== */

.auth-page {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.auth-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 40px 40px 30px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.auth-logo i {
    color: var(--primary);
    margin-right: 10px;
}

.auth-logo span {
    color: var(--primary);
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray);
}

.auth-body {
    padding: 0 40px 30px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-button,
.register-button {
    font-size: 1rem;
    margin-top: 10px;
}

/* 社交登录 */
.social-login {
    margin-bottom: 20px;
}

.social-login-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.social-login-title::before,
.social-login-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--gray-light);
}

.social-login-title span {
    padding: 0 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-btn {
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--light);
    border-color: var(--gray);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn.wechat i {
    color: #09bb07;
}

.social-btn.qq i {
    color: #12b7f5;
}

.social-btn.github i {
    color: #333;
}

.auth-footer {
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid var(--gray-light);
    background-color: var(--light);
}

.auth-footer p {
    color: var(--gray);
    margin: 0;
}

.register-link {
    color: var(--primary);
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

/* 密码强度 */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 5px;
    background-color: var(--gray-light);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.weak {
    background-color: var(--warning);
    width: 33%;
}

.strength-fill.medium {
    background-color: #ed8936;
    width: 66%;
}

.strength-fill.strong {
    background-color: var(--success);
    width: 100%;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-page {
        padding: 40px 20px;
    }
    
    .auth-card {
        box-shadow: none;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-body {
        padding: 0 20px 30px;
    }
    
    .auth-footer {
        padding: 20px;
    }
}
