/* 登录/注册页样式 */
.auth-card {
    width: 100%; max-width: 440px;
    margin: 0 auto;
    border: none;
    background: transparent;
    box-shadow: none;
}
.auth-card .card-body { padding: 2rem 0.5rem; }
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand .icon-wrap {
    display: inline-flex; width: 56px; height: 56px; border-radius: 16px;
    background: var(--primary); align-items: center; justify-content: center;
    margin-bottom: 1rem; box-shadow: 0 8px 16px rgba(var(--bs-primary-rgb), 0.25);
}
.auth-brand .icon-wrap i { font-size: 28px; color: #fff; }
.auth-brand h4 { font-weight: 800; margin: 0; color: var(--text-main); font-size: 1.5rem; letter-spacing: -0.5px; }
.auth-brand .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

.nav-tabs {
    border: 0; margin-bottom: 2rem; background: rgba(241,245,249,0.9); border-radius: 12px; padding: 4px;
    display: flex; gap: 4px;
}
.nav-tabs .nav-link {
    border: 0; color: var(--text-muted); font-weight: 600; border-radius: 10px; padding: 0.6rem 0; flex: 1; transition: all 0.2s;
}
.nav-tabs .nav-link.active {
    background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-floating > .form-control { border-radius: 12px; border-color: rgba(0,0,0,0.12); background: transparent; }
.form-floating > .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.1); background: transparent; }
.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus,
.form-floating > .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b;
    transition: background-color 9999s ease-in-out 0s !important;
}
.form-floating > label { color: #94a3b8; }

.password-strength { height: 4px; border-radius: 2px; background: #e2e8f0; margin-top: 6px; overflow: hidden; }
.password-strength > div { height: 100%; width: 0%; transition: all 0.3s ease; }
.strength-weak > div { width: 33%; background: #ef4444; }
.strength-medium > div { width: 66%; background: #f59e0b; }
.strength-strong > div { width: 100%; background: #10b981; }

.btn-auth { height: 48px; border-radius: 999px; font-weight: 600; font-size: 1rem; margin-top: 0.5rem; }
.captcha-box {
    height: calc(3.5rem + 2px);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: transparent; border-radius: 12px; font-family: 'SF Mono', monospace; font-size: 18px; font-weight: 700; color: var(--primary);
    border: 1px solid rgba(0,0,0,0.12);
    user-select: none;
}
.captcha-refresh { cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.captcha-refresh:hover { color: var(--primary); }

.toggle-pwd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; z-index: 5; transition: color 0.2s; }
.toggle-pwd:hover { color: var(--primary); }
