/* Auth pages: sign in with your Laramin, sign-in refused. Owned by the auth page agent. These pages use the
   auth header (@section('header', 'auth')). Use the form components in ../help.css (.form-group, .field, …).
   Board: SignIn, SignInRefused. The whole page is the navy band; one 480px white card sits on it. */

/* The navy page: the band runs from the header to the bottom (the layout leaves the footer off these pages). */
body:has(.auth-page) { background: var(--c-navy); }

.auth-page { display: flex; justify-content: center; padding: var(--sp-40) var(--gutter) var(--sp-64); }

.auth-card {
    width: 100%; max-width: 480px; padding: var(--sp-40) var(--sp-32);
    display: flex; flex-direction: column; gap: var(--sp-24);
    background: #ffffff; border-radius: var(--r-dialog); box-shadow: var(--shadow-2);
}
.auth-card__intro { display: flex; flex-direction: column; gap: var(--sp-8); }
.auth-card__intro--icon { gap: var(--sp-16); }
.auth-card__lead { max-width: var(--measure); color: var(--c-muted); }
.auth-card__text { max-width: var(--measure); color: var(--c-body); }
.auth-card__icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-card); background: var(--c-amber-tint); color: var(--c-amber);
}
.auth-card__host { font-family: var(--font-mono); font-size: var(--fs-13); overflow-wrap: anywhere; }
.auth-card__ui { font-weight: 700; color: var(--c-strong); }
.auth-card__actions { display: flex; flex-direction: column; gap: var(--sp-12); padding-top: var(--sp-24); border-top: 1px solid var(--c-border); }
.auth-card__foot { font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-muted); }
.auth-card__foot a { white-space: nowrap; }

/* The remembered installation: one big choice (board: "Continue to [name]'s Laramin"). */
.auth-choice {
    width: 100%; min-height: 48px; display: flex; align-items: center; gap: var(--sp-16); padding: var(--sp-12) var(--sp-16);
    background: #ffffff; border: 1px solid var(--c-control); border-radius: var(--r-card); text-align: start; color: var(--c-strong);
}
.auth-choice:hover { background: var(--c-ground); }
.auth-choice__tile {
    flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-control); background: var(--c-selected); color: var(--c-primary);
    font: 800 var(--fs-14)/1 var(--font-head);
}
.auth-choice__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-choice__name { font-size: var(--fs-16); font-weight: 500; line-height: var(--lh-ui); color: var(--c-strong); }
.auth-choice__host { font-family: var(--font-mono); font-size: var(--fs-13); line-height: var(--lh-ui); color: var(--c-muted); overflow-wrap: anywhere; }
.auth-choice__arrow { color: var(--c-primary); }
.auth-card .divider-text { gap: var(--sp-12); }
.auth-card .divider-text::before, .auth-card .divider-text::after { border-top-color: var(--c-border); }

/* "Your Laramin address" with https:// written in front of what the reader types. */
.auth-form { display: flex; flex-direction: column; gap: var(--sp-8); }
.auth-form__submit { margin-top: var(--sp-8); }
.auth-field__scheme { flex: none; padding-inline-start: var(--sp-12); font-family: var(--font-mono); font-size: var(--fs-13); color: var(--c-muted); direction: ltr; }
.auth-field__scheme + input { padding-inline: var(--sp-4) var(--sp-12); }
.auth-form .field--error { box-shadow: inset 0 0 0 1px var(--c-red); }
.auth-form .field--error:focus-within { box-shadow: inset 0 0 0 1px var(--c-red), 0 0 0 2px var(--c-primary); }
.auth-form .field-error { font-weight: 400; }

/* The card's tip and notices are the compact size (14px, 12/16 padding). */
.auth-card .callout { padding: var(--sp-12) var(--sp-16); }
.auth-card .callout__icon, .auth-card .notice__icon { margin-top: 0; }
.auth-card .callout__body { font-size: var(--fs-14); line-height: var(--lh-ui); }
.auth-notice { padding: var(--sp-12) var(--sp-16); font-size: var(--fs-14); }
.auth-notice.notice--error { border: 1px solid var(--c-red); }

@media (max-width: 640px) {
    .auth-page { padding-block: var(--sp-24) var(--sp-48); }
    .auth-card { padding: var(--sp-32) var(--sp-20); }
}
