/**
 * 登录 / 注册独立页：与首页 accent 色系一致，不依赖用户中心样式
 */
:root {
    --auth-accent: #1e3a5f;
    --auth-accent-mid: #2d5a8c;
    --auth-ink: #0c1222;
    --auth-muted: #5c6578;
    --auth-border: rgba(12, 18, 34, 0.08);
    --auth-card-shadow: 0 12px 40px rgba(12, 18, 34, 0.08), 0 2px 8px rgba(12, 18, 34, 0.04);
}

.auth-page {
    margin: 0;
    min-height: 100vh;
    color: var(--auth-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #e8edf5;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(45, 90, 140, 0.14) 0%, transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(30, 58, 95, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #f2f5fb 0%, #e8edf5 45%, #eef2f8 100%);
}

.auth-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(12px, env(safe-area-inset-top)) 1.25rem 0;
    max-width: 520px;
    margin: 0 auto;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-brand:hover {
    color: var(--auth-accent-mid);
}

.auth-brand i {
    opacity: 0.9;
}

.auth-back-home {
    font-size: 0.875rem;
    color: var(--auth-muted);
    text-decoration: none;
    white-space: nowrap;
}

.auth-back-home:hover {
    color: var(--auth-accent);
}

.auth-main {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1rem max(2rem, env(safe-area-inset-bottom));
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--auth-card-shadow);
    border: 1px solid var(--auth-border);
}

@media (min-width: 576px) {
    .auth-card {
        padding: 2rem 2rem 1.75rem;
    }
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--auth-ink);
}

.auth-lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.auth-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 0.35rem;
}

.auth-form .form-control {
    border-radius: 10px;
    border-color: #d8dee9;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
}

.auth-form .form-control:focus {
    border-color: var(--auth-accent-mid);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.auth-form .mb-field {
    margin-bottom: 1rem;
}

.btn-auth-primary {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(145deg, var(--auth-accent), var(--auth-accent-mid));
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-auth-primary:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35);
}

.btn-auth-primary:active {
    transform: scale(0.98);
}

.auth-alert {
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
}

.auth-callout {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 100%);
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #1a4a66;
}

.auth-callout strong {
    font-weight: 700;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-switch a {
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-foot {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #8b93a5;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .btn-auth-primary {
        transition: none;
    }
}
