/* ========== 登录页样式 - login.css ========== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    animation: fadeInUp 0.5s var(--ease);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === LOGO AREA === */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.login-logo h1 {
    font-size: 2.1rem;
    font-family: var(--font-serif);
    color: var(--text);
    margin-top: 14px;
    letter-spacing: 0.05em;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

/* === CARD === */
.login-card {
    background: var(--surface);
    backdrop-filter: blur(var(--blur));
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* === TABS === */
.login-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.login-tab {
    flex: 1;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s var(--ease);
    border-bottom: 3px solid transparent;
    margin-bottom: -14px;
    font-family: var(--font-sans);
}

.login-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.login-tab:hover:not(.active) { color: var(--text-2); }

/* === FORMS === */
.login-form, .register-form { display: block; }
.login-form.hidden, .register-form.hidden { display: none; }

.form-group { margin-bottom: 22px; position: relative; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-2);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s var(--ease);
    font-family: var(--font-sans);
}

.form-group input:focus, .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface);
}

.form-group input::placeholder, .form-control::placeholder { color: var(--text-muted); }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}
.password-toggle:hover { color: var(--accent); }

/* === PASSWORD STRENGTH === */
.strength-bar {
    height: 4px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    margin-top: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-pill);
    transition: width 0.3s var(--ease), background-color 0.3s;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
    display: block;
}

.strength-weak { background: var(--danger); width: 33%; }
.strength-medium { background: var(--warning); width: 66%; }
.strength-strong { background: var(--success); width: 100%; }

/* === BUTTON & LINKS === */
.form-submit, .login-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    margin-top: 10px;
    box-shadow: 0 4px 12px var(--accent-soft);
    font-family: var(--font-sans);
}

.form-submit:hover, .login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-soft);
}

.form-submit:disabled, .login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === MISSING HTML CLASSES === */
.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s var(--ease);
}
.input-with-prefix:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface);
}
.input-with-prefix .prefix {
    padding: 0 0 0 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-sans);
}
.input-with-prefix input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}


.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.form-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.form-link:hover { color: var(--accent); }

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 12px;
    display: none;
}
.error-message.show { display: block; }

.success-message {
    color: var(--success);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
}

/* === VERIFICATION OVERLAY & MODAL === */
.verification-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s var(--ease);
}

.verification-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s var(--ease);
    overflow: hidden;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.verification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.verification-header span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-serif);
}

.verification-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.verification-close:hover {
    color: var(--text);
}

.verification-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.verification-tip {
    font-size: 0.92rem;
    color: var(--text-2);
    margin-bottom: 20px;
}

.verify-question {
    margin-bottom: 18px;
}

.verify-question label {
    display: block;
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--text);
    margin-bottom: 6px;
}

.verify-hint {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.verify-question input {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    outline: none;
    transition: all 0.2s var(--ease);
}

.verify-question input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.verification-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.verify-cancel-btn,
.verify-submit-btn {
    flex: 1;
    padding: 11px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.verify-cancel-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-2);
}

.verify-cancel-btn:hover {
    background: var(--surface-2);
}

.verify-submit-btn {
    background: var(--accent);
    border: none;
    color: white;
}

.verify-submit-btn:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.verify-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === MOBILE === */
@media (max-width: 480px) {
    .login-card { padding: 32px 24px; border-radius: var(--radius-md); }
    .login-logo h1 { font-size: 1.8rem; }
    .verification-modal { max-width: 100%; border-radius: var(--radius-md); }
}
