/* ==========================================================================
   Sign in / sign up / OAuth confirmation. Built on the dashboard.css tokens.
   ========================================================================== */

.auth-body {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px 16px;
}

/* Soft glow behind the card, the same accent mix as the plans page. */
.auth-body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(var(--teal-rgb), 0.12), transparent 40%),
        radial-gradient(circle at 75% 80%, rgba(var(--blue-rgb), 0.1), transparent 45%);
    content: "";
    pointer-events: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 420px);
    justify-items: center;
    gap: 20px;
    animation: auth-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-brand {
    font-size: 0.82rem;
}

.auth-card.panel {
    width: 100%;
    padding: 32px 28px 26px;
    text-align: center;
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.auth-card h1 {
    max-width: none;
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 6vw, 2rem);
}

.auth-lede {
    margin: 0 auto 24px;
    max-width: 34ch;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-providers {
    display: grid;
    gap: 10px;
}

.auth-provider {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.auth-provider svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.auth-provider:hover,
.auth-provider:focus-visible {
    border-color: rgba(var(--teal-rgb), 0.5);
    background: rgba(var(--teal-rgb), 0.08);
    transform: translateY(-1px);
}

.auth-provider.is-primary {
    border-color: rgba(var(--teal-rgb), 0.5);
    background: rgba(var(--teal-rgb), 0.14);
}

.auth-confirm {
    margin: 0;
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 20px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.75rem;
    list-style: none;
}

.auth-points li::before {
    margin-right: 6px;
    color: var(--teal);
    content: "\2713";
}

.auth-switch {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-switch a,
.auth-back {
    color: var(--teal);
    text-decoration: none;
}

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

.auth-back {
    color: var(--muted);
    font-size: 0.82rem;
    transition: color 0.18s ease;
}

.auth-back:hover,
.auth-back:focus-visible {
    color: var(--text);
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
    .auth-card.panel {
        padding: 26px 18px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell {
        animation: none;
    }
}
