/* ── Sign-in, host and console, as the prototype's AuthSplit: the form on the left in a 400px column on near-black, a slow
   poster wall on the right behind dark fades, and snow over the page. The values are the prototype's (app.css 1591-1630, its
   design system's field and banner, ds/bundle.css 46-70 and 169-186). ── */
.as { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: #0B0B0D; color: var(--text); }
.as > .snow { position: fixed; z-index: 5; }
.as__left { position: relative; display: grid; place-items: center; padding: var(--space-8) var(--space-5); }
.as__top { position: absolute; top: var(--space-5); left: var(--space-5); right: var(--space-5); z-index: 5; display: flex; justify-content: flex-end; }
.as__top .pn__box { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.as__panel { width: 100%; max-width: 400px; display: grid; gap: var(--space-5); text-align: left; }
.as__logo { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.as__logo img { height: 40px; width: auto; }
.as__logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.as__brand { margin: -12px 0 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.as__panel h1 { margin: 0; text-align: center; font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--text); }
.as__head { display: grid; gap: var(--space-2); }
.as__head p { margin: 0; text-align: center; color: var(--text-muted); }
.as__stack { display: grid; gap: var(--space-4); }
.as__form { display: grid; gap: var(--space-5); }
.as__art { position: relative; overflow: hidden; background: #0B0B0D; }
.as__art .dm { width: 100%; inset: 0; opacity: 0.55; }
.as__art .dm__card { width: 200px; height: 150px; }
.as__art .dm__fade { display: none; }
.as__art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #0B0B0D 0%, rgba(11, 11, 13, 0.85) 18%, rgba(11, 11, 13, 0.2) 55%, rgba(11, 11, 13, 0.35) 100%), linear-gradient(0deg, #0B0B0D 0%, rgba(11, 11, 13, 0) 22%), linear-gradient(180deg, #0B0B0D 0%, rgba(11, 11, 13, 0) 22%); }
@media (max-width: 900px) { .as { grid-template-columns: minmax(0, 1fr); } .as__art { display: none; } }
/* Phones: the language box sits above the form instead of over it, with less space on top. */
@media (max-width: 600px) { .as__left { align-content: start; gap: var(--space-5); padding-top: var(--space-5); } .as__top { position: static; justify-self: stretch; } }

/* A field: label, hint, a dark box with a thin line, and the error under it. */
.af { display: grid; gap: 6px; min-width: 0; }
.af__label { font-size: 15px; font-weight: 600; line-height: 20px; }
.af__hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.af__control { display: flex; align-items: center; min-height: 48px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; background: #17171A; transition: border-color 0.15s ease; }
.af--phone .af__control { min-height: 56px; }
.af__control:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.af__input { flex: 1; min-width: 0; align-self: stretch; border: 0; outline: none; background: transparent; padding: 0 14px; color: var(--text); font: inherit; font-size: 16px; }
.af__input::placeholder { color: var(--text-muted); opacity: 1; }
.af.is-error .af__control { border-width: 2px; border-color: var(--text); }
.af__error { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.af__error[hidden] { display: none; }
.af__error .ic { flex: none; margin-top: 1px; color: var(--accent-text); }

/* Buttons: near-white primary, near-black secondary, 10px corners. */
.ab { display: flex; width: 100%; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 10px; font: 600 15px/1.2 var(--font-body); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.ab--phone { min-height: 56px; font-size: 17px; padding: 0 var(--space-5); }
.ab--primary { background: #EBEBEB; border-color: #EBEBEB; color: #111; }
.ab--primary:hover { background: #FFF; border-color: #FFF; }
.ab--secondary { background: #17171A; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text); }
.ab--secondary:hover { background: #1E1E22; }
.ab:active { transform: translateY(1px); }
.ab:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* "OR" between two ways in, and the small links under the form. */
.auth__or { display: flex; align-items: center; gap: var(--space-3); margin: 0; color: var(--text-muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }
.auth__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); margin: 0; font-size: 14px; }
.auth__links a, .auth__links button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth__links a:hover, .auth__links button:hover { color: var(--text); }
.auth__links--quiet { font-size: 13px; }

/* A banner: signed out, a code sent, something went wrong. */
.ab-banner { display: flex; align-items: flex-start; gap: 14px; padding: var(--space-4) 18px; border: 1px solid var(--line); border-radius: 12px; background: #2F323B; color: var(--text); }
.ab-banner .ic { flex: none; margin-top: 2px; color: var(--accent-text); }
.ab-banner__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ab-banner__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.ab-banner__text { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.ab-banner--success { background: #1F2D2A; border-color: transparent; }
.ab-banner--success .ic, .ab-banner--success .ab-banner__title { color: #9DBDB4; }
.ab-banner--success .ab-banner__text { color: var(--text); }
.ab-banner--error { background: #FAF6F0; border-color: #FAF6F0; color: #1B1D23; }
.ab-banner--error .ic { color: var(--accent); }
.ab-banner--error .ab-banner__text { color: #1B1D23; }

/* Steps to follow, and the quiet way in with a password. */
.numbered { display: grid; gap: var(--space-3); margin: 0; padding-left: 1.4em; font-size: 17px; line-height: 26px; }
.as__more { display: grid; gap: var(--space-4); }
.as__more > summary { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.as__more > summary::-webkit-details-marker { display: none; }
.as__more > summary:hover { color: var(--text); }
.as__check { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; font-size: 15px; }
.as__check input { width: 20px; height: 20px; accent-color: #EBEBEB; }
/* The invite's "Step 2 of 2" (the prototype's compact stepper), and the code to scan for 2-step sign-in. */
.as__steps { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); text-align: center; }
.as__qr { display: grid; justify-items: center; gap: var(--space-3); }
.as__qr-code { padding: 12px; border-radius: 12px; background: #FFF; line-height: 0; }
.as__qr-code svg { width: 176px; height: 176px; }
.as__secret { margin: 0; font-size: 14px; color: var(--text-muted); text-align: center; }
.as__secret code { color: var(--text); font: 600 14px/1.4 ui-monospace, Menlo, monospace; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .ab, .af__control { transition: none; } }
