/* ============================================================
   SosNext — public.css

   Shell for the publicly-accessible pages (no login, no nav).
   Built entirely from site.css tokens; site.css is not modified
   and must be linked before this file.

   Design 1, "Focused Task": the dot-grid ground and centred
   column deliberately echo the .auth-* login treatment so the
   public pages read as one family with the login page, while
   the absence of a sidebar or app topbar keeps them clearly
   distinct from the application itself.
   ============================================================ */

.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--surface-bg);
    position: relative;
}

    .public-shell::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: radial-gradient(var(--border-default) 1px, transparent 1px);
        background-size: 24px 24px;
        pointer-events: none;
        z-index: 0;
    }

/* ── Top bar ─────────────────────────────────────────────────
   Logo and language only. A visitor to these pages has nowhere
   to navigate, so there is no nav and no user menu. */
.public-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--topbar-height);
    padding: var(--space-2) var(--space-5);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
}

.public-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

    .public-brand img {
        max-height: 30px;
        width: auto;
    }

.public-brand-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Content column ──────────────────────────────────────────
   Wider than the 420px login card, narrow enough to hold form
   labels and running text at a comfortable measure. */
.public-main {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4) var(--space-12);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.public-heading {
    text-align: center;
}

.public-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
    text-wrap: balance;
}

.public-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ── Action row ──────────────────────────────────────────── */
.public-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

    .public-actions .btn {
        min-width: 120px;
        justify-content: center;
    }

/* ── Verdict mark ────────────────────────────────────────────
   For terminal pages that report a single outcome. */
.public-verdict {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}

    .public-verdict svg {
        width: 30px;
        height: 30px;
    }

    .public-verdict.is-success {
        background: var(--color-success-bg);
        color: var(--color-success);
    }

    .public-verdict.is-warning {
        background: var(--color-warning-bg);
        color: var(--color-warning);
    }

    .public-verdict.is-danger {
        background: var(--color-danger-bg);
        color: var(--color-danger);
    }

/* ── Footer ──────────────────────────────────────────────── */
.public-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: var(--space-6) var(--space-4);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
}

.public-footer-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.public-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

    .public-footer a:hover {
        text-decoration: underline;
    }

@media (max-width: 560px) {
    .public-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .public-actions .btn {
            width: 100%;
        }
}
