/* ═══════════════════════════════════════════════════════════════════
   Account status pages, and the panel that says what to do next
   ═══════════════════════════════════════════════════════════════════
   Confirming an address is not a page anyone reads twice, which is why
   it had drifted so far: a purple gradient nobody else on the site uses,
   a white card that ignored the theme, a pulsing ring and a shake. It is
   the first thing a new traveller sees after registering, so it is built
   from the same tokens as everything else — and it says what to do next
   rather than offering "Register Again" to someone whose only problem is
   a link that has expired.
   ═══════════════════════════════════════════════════════════════════ */

.as-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
    background: var(--hub-bg);
}

.as-logo { display: block; line-height: 0; }

/* No display on this rule. theme.css hides the wrong wordmark with
   ".logo-on-light { display: none }" at (0,1,0), and "display: block" here
   would be (0,2,0) and win — which is how both logos ended up stacked on
   the dark ground. The same collision the footer stylesheet documents. */
.as-logo img { height: 30px; width: auto; }

.as-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid var(--hub-hairline);
    border-radius: 16px;
    background: var(--hub-elev);
    text-align: center;
    box-shadow: 0 12px 36px rgb(0 0 0 / 0.08);
}

/* ── The one mark at the top ────────────────────────────────────── */

.as-mark {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    border: 1px solid var(--hub-hairline);
}

.as-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.as-mark.is-working { color: var(--hub-ink-muted); }

.as-mark.is-good {
    color: var(--hub-accent-strong);
    border-color: rgb(var(--hub-accent-rgb) / 0.4);
    background: rgb(var(--hub-accent-rgb) / 0.08);
}

.as-mark.is-bad {
    color: var(--hub-error);
    border-color: rgb(var(--hub-error-rgb) / 0.4);
    background: rgb(var(--hub-error-rgb) / 0.07);
}

.as-spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--hub-hairline);
    border-top-color: var(--hub-accent);
    border-radius: 50%;
    animation: as-spin 0.75s linear infinite;
}

@keyframes as-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .as-spinner { animation-duration: 2.4s; }
}

/* ── Words ──────────────────────────────────────────────────────── */

.as-title {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--hub-ink);
    text-wrap: balance;
}

.as-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--hub-ink-muted);
}

/* ── What to do next ────────────────────────────────────────────── */

.as-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.35rem;
}

.as-actions[hidden] { display: none; }

.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.05rem;
    border: 1px solid var(--hub-hairline);
    border-radius: 999px;
    background: var(--hub-elev);
    color: var(--hub-ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.as-btn:hover { border-color: rgb(var(--hub-accent-rgb) / 0.5); color: var(--hub-accent-strong); }

.as-btn.is-primary {
    border-color: transparent;
    background: var(--hub-accent);
    color: var(--hub-on-accent);
}

.as-btn.is-primary:hover { background: var(--hub-accent-strong); color: var(--hub-on-accent); }
.as-btn[disabled] { opacity: 0.6; cursor: default; }

/* ── Asking for a new link ──────────────────────────────────────── */

.as-resend {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--hub-hairline);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.as-resend[hidden] { display: none; }

.as-field { display: flex; flex-direction: column; gap: 0.3rem; }

.as-field > span {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--hub-ink-muted);
}

.as-field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--hub-hairline);
    border-radius: 10px;
    background: var(--hub-elev);
    color: var(--hub-ink);
    font: inherit;
    font-size: 0.9rem;
}

.as-field input:focus-visible {
    outline: none;
    border-color: rgb(var(--hub-accent-rgb) / 0.6);
    box-shadow: 0 0 0 3px rgb(var(--hub-accent-rgb) / 0.12);
}

.as-note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--hub-accent-strong);
}

.as-note[hidden] { display: none; }

.as-foot { margin: 0; font-size: 0.85rem; }
.as-foot a { color: var(--hub-ink-muted); text-decoration: none; }
.as-foot a:hover { color: var(--hub-accent-strong); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   The panel on the sign-in form
   ═══════════════════════════════════════════════════════════════════
   An unconfirmed address is not a typo to correct, it is a step left
   unfinished — so it cannot be a toast that leaves after five seconds
   while the person is still reading it. It stays, it says what happened,
   and it carries the one action that fixes it.
   ═══════════════════════════════════════════════════════════════════ */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--hub-hairline);
    border-left: 3px solid var(--hub-ink-muted);
    border-radius: 10px;
    background: rgb(var(--hub-surface-rgb) / 0.6);
    text-align: left;
}

.auth-alert[hidden] { display: none; }

.auth-alert.is-error {
    border-left-color: var(--hub-error);
    background: rgb(var(--hub-error-rgb) / 0.07);
}

.auth-alert.is-hold {
    border-left-color: var(--hub-warning);
    background: rgb(var(--hub-warning-rgb) / 0.09);
}

.auth-alert.is-done {
    border-left-color: var(--hub-accent);
    background: rgb(var(--hub-accent-rgb) / 0.08);
}

.auth-alert-mark { flex: none; margin-top: 1px; }
.auth-alert-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.auth-alert.is-error .auth-alert-mark { color: var(--hub-error); }
.auth-alert.is-hold .auth-alert-mark { color: var(--hub-warning); }
.auth-alert.is-done .auth-alert-mark { color: var(--hub-accent-strong); }

.auth-alert-body { min-width: 0; flex: 1; }

.auth-alert-title {
    margin: 0 0 0.15rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hub-ink);
}

.auth-alert-text { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--hub-ink-muted); }

.auth-alert-do {
    margin-top: 0.55rem;
    min-height: 32px;
    padding: 0 0.8rem;
    border: 1px solid rgb(var(--hub-accent-rgb) / 0.45);
    border-radius: 999px;
    background: transparent;
    color: var(--hub-accent-strong);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-alert-do:hover { background: rgb(var(--hub-accent-rgb) / 0.1); }
.auth-alert-do[disabled] { opacity: 0.55; cursor: default; }
.auth-alert-do[hidden] { display: none; }
