﻿/* ===== Auth Pages Styles ===== */
/* Auth Banner */
.auth-banner {
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    text-align: center;
}

.auth-banner h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Auth Section */
.auth-section {
    padding: 60px 24px 80px;
    background: var(--bg-light);
    min-height: calc(100vh - 350px);
}

/* Auth Card */
.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
}

/* Notice Box */
.notice-box {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: #e8f4fd;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid #2196F3;
}

.notice-box.info {
    background: #fff8e1;
    border-left-color: #FFC107;
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notice-content p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 4px;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 14px 24px;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-light);
    transition: var(--transition);
}

.auth-tab:hover {
    color: var(--text-dark);
}

.auth-tab.active {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.required {
    color: #e53935;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-light);
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: #3B82F6;
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(254, 229, 0, 0.2);
}

.auth-form input::placeholder {
    color: #999;
}

.field-hint {
    font-size: 12px;
    color: var(--text-light);
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: var(--transition);
}

.toggle-password:hover {
    opacity: 1;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background: #e53935;
}

.strength-fill.medium {
    width: 66%;
    background: #FFC107;
}

.strength-fill.strong {
    width: 100%;
    background: #4CAF50;
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
    min-width: 60px;
}

.strength-text.weak {
    color: #e53935;
}

.strength-text.medium {
    color: #FFC107;
}

.strength-text.strong {
    color: #4CAF50;
}

/* Match Hint */
.match-hint {
    font-size: 12px;
}

.match-hint.match {
    color: #4CAF50;
}

.match-hint.no-match {
    color: #e53935;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3B82F6;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #2196F3;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-note {
    padding: 10px 14px;
    background: #fff8e1;
    border-radius: var(--radius-sm);
}

.form-note small {
    font-size: 12px;
    color: #856404;
}

.checkbox-group {
    padding-top: 8px;
}

.checkbox-group .link {
    color: #2196F3;
}

.checkbox-group .link:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-auth-primary,
.btn-auth-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-auth-primary {
    background: var(--text-dark);
    color: var(--bg-white);
}

.btn-auth-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-auth-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
}

.btn-auth-secondary:hover {
    border-color: var(--text-dark);
    background: var(--bg-white);
}

/* Social Login */
.social-login {
    margin-top: 32px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--text-dark);
    background: var(--bg-light);
}

.social-btn.wechat:hover {
    border-color: #07C160;
    color: #07C160;
}

/* Auth Footer */
.auth-footer {
    padding: 40px 24px;
}

/* Active Header Button */
.header-actions .btn-login.active,
.header-actions .btn-register.active {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* Auth Message */
.auth-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.auth-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #e53935;
}

.auth-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196F3;
}

.auth-message button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 0 0 12px;
}

.auth-message button:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-banner {
        padding: 100px 20px 40px;
    }

    .auth-banner h1 {
        font-size: 28px;
    }

    .auth-card {
        padding: 24px;
        margin: 0 -4px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}


