/* Sign-in interstitial (signin.html) — the invite-only fork. Extends
   css/style.css. Mobile-first; the single 768px breakpoint matches style.css. */

/* Hide the fork until signin.js resolves the signed-in check — avoids a flash
   of the fork before a logged-in visitor is bounced (mirrors signup.css). */
body.loading .container {
    visibility: hidden;
}

.page-head {
    padding: var(--space-4) 0 var(--space-3);
}

.page-head h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--ink);
}

.page-head__sub {
    margin-top: var(--space-2);
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.signin-fork {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding-bottom: var(--space-5);
}

.signin-card h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--space-1);
}

.signin-card__lead {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: var(--space-3);
}

/* The "Access blocked" pre-warning. A non-test-user is hard-blocked by Google
   on accounts.google.com and never returns to our callback — there is nothing
   to catch server-side. This amber callout sets the expectation up front and
   points to the invite form. Uses the design-system warn tokens. */
.signin-warning {
    margin-top: var(--space-3);
    padding: 12px 14px;
    background: var(--warn-bg);
    border: 1px solid var(--warn-bd);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--warn-ink);
    line-height: 1.5;
}

/* The shared invite form's success box already sits inside a .panel card here,
   so drop its own border/background — otherwise it reads as a box-in-a-box. */
.signin-card .invite-success {
    margin: var(--space-2) 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

@media (min-width: 768px) {
    .page-head h1 {
        font-size: 2.25rem;
    }

    .signin-fork {
        grid-template-columns: 1fr 1fr;
    }
}
