/* The staging gate on the member and test-app hosts: a slate ground with no sky and a hazard-striped band, so it can't be taken for the real sign-in. No inline style anywhere (the page policy allows none). */
:root {
    --gate-ground: #20262e;
    --gate-card: #2a313b;
    --gate-edge: #4a5462;
    --gate-text: #eef1f5;
    --gate-muted: #b4bdc9;
    --gate-hazard: #f2b705;
    --gate-ink: #15181d;
    --gate-alert: #ffb4b4;
    --hover: 150ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--gate-ground); color-scheme: dark; }
/* 100vh is the fallback for browsers without dvh */
/*noinspection CssOverwrittenProperties*/
body {
    margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr;
    background: var(--gate-ground); color: var(--gate-text); font: 1rem/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.gate-band {
    display: grid; place-items: center; padding: .875rem 1rem; color: var(--gate-ink);
    background: repeating-linear-gradient(-45deg, var(--gate-hazard) 0 1rem, var(--gate-ink) 1rem 2rem);
}
.gate-band span {
    padding: .25rem .875rem; background: var(--gate-hazard); border-radius: .25rem; font-weight: 800; letter-spacing: .2em; font-size: .9375rem;
}
.gate-page { display: grid; align-content: start; justify-items: center; padding: 1.5rem 1rem 2.5rem; }
.gate-card {
    width: 100%; max-width: 28rem; display: grid; gap: 1rem; padding: 1.5rem; background: var(--gate-card);
    border: 1px solid var(--gate-edge); border-radius: .5rem;
}
.gate-card > * { margin: 0; min-width: 0; }
.gate-card h1 { font-size: 1.375rem; line-height: 1.3; text-wrap: balance; }
.gate-card p { text-wrap: pretty; overflow-wrap: anywhere; }
.gate-lead { color: var(--gate-muted); }
.gate-hint { color: var(--gate-muted); font-size: .875rem; }
.gate-form { display: grid; gap: 1rem; }
.gate-form > * { margin: 0; }
.gate-field { display: grid; gap: .375rem; }
.gate-field label { font-weight: 600; }
.gate-field input {
    width: 100%; min-height: 2.75rem; padding: .5rem .75rem; font: inherit; color: var(--gate-text);
    background: var(--gate-ground); border: 1px solid var(--gate-edge); border-radius: .375rem;
}
.gate-field input[aria-invalid="true"] { border-color: var(--gate-alert); }
.gate-error {
    display: flex; gap: .625rem; align-items: flex-start; padding: .75rem 1rem; color: var(--gate-alert);
    border: 1px solid var(--gate-alert); border-radius: .375rem;
}
.gate-error .icon { margin-top: .125rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate-button {
    display: inline-flex; gap: .5rem; align-items: center; justify-content: center; width: 100%; min-height: 2.75rem; padding: .5rem 1rem;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; color: var(--gate-ink); background: var(--gate-hazard);
    border: 1px solid var(--gate-hazard); border-radius: .375rem;
}
.gate-button-second { color: var(--gate-text); background: transparent; border-color: var(--gate-edge); }
.gate-leave { display: grid; margin: 0; }
:where(a, button, input, label) { transition: background-color var(--hover) ease, border-color var(--hover) ease, color var(--hover) ease, opacity var(--hover) ease; }
.gate-button:hover { background: #ffd24a; border-color: #ffd24a; }
.gate-button-second:hover { background: var(--gate-ground); border-color: var(--gate-text); }
.gate-field input:hover { border-color: var(--gate-muted); }
:focus-visible { outline: 2px solid var(--gate-text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (min-width: 56rem) {
    .gate-page { padding-top: 3rem; }
    .gate-card { padding: 2rem; }
}
