/* Sign-in journey, account window, welcome, and the strip above the application. */
.auth-wait { min-height: 100vh; display: grid; place-items: center; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 44px; color: #eaf3ff; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #0e74d4 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #0a4f9c 0%, transparent 65%), #072a52; }
.auth-brand::after { content: ""; position: absolute; inset: auto -20% -35% -20%; height: 60%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 130px rgba(255, 255, 255, .025); pointer-events: none; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: #fff; position: relative; z-index: 1; }
.auth-logo svg { width: 50px; height: 34px; color: #7cc4ff; }
.auth-logo i { font-style: italic; color: #7cc4ff; }
.auth-hello { position: relative; z-index: 1; max-width: 460px; }
.auth-hello .label { color: #a9c6e8; }
.auth-hello h1 { margin: 10px 0 28px; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; color: #fff; text-wrap: balance; }
.auth-hello ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-hello li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.auth-hello li > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.auth-hello li svg { width: 18px; height: 18px; }
.auth-hello li b { display: block; font-size: 15px; color: #fff; }
.auth-hello li small { display: block; font-size: 13px; line-height: 19px; color: #b9d0ea; }
.auth-foot { position: relative; z-index: 1; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #a9c6e8; }
.auth-foot span { display: inline-flex; align-items: center; gap: 7px; }
.auth-foot svg { width: 15px; height: 15px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card h2 { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 36px; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.auth-sub { margin: 8px 0 0; color: var(--ink-muted); font-size: 14.5px; line-height: 21px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-form .input { min-height: 44px; font-size: 15px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.auth-submit { height: 46px; width: 100%; font-size: 15px; }
.auth-note { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.auth-legal { width: min(430px, 100%); font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.link.center { align-self: center; font-size: 13.5px; }
.auth-card > .link.center { display: block; margin: 12px auto 0; }
.link.muted { color: var(--ink-muted); }
.auth-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); font-size: 13.5px; line-height: 19px; }
.auth-msg svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.auth-msg.err { background: var(--danger-soft); color: var(--danger); }
.auth-msg.ok { background: var(--success-soft); color: var(--success); }
.auth-msg.info { background: var(--flow-soft); color: var(--flow); }
.pass { position: relative; }
.pass .input { padding-right: 86px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--flow); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.pass-toggle:hover { background: var(--flow-soft); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.spin.dark { border-color: var(--line); border-top-color: var(--flow); width: 24px; height: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.input.code { text-align: center; font-family: var(--font-mono); font-size: 26px !important; letter-spacing: .3em; min-height: 58px !important; }
.input.code.rec { letter-spacing: .12em; font-size: 22px !important; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -6px; }
.meter i { height: 4px; border-radius: 4px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
.meter i.on { box-shadow: none; } .meter i.s1 { background: var(--danger); } .meter i.s2 { background: var(--warning); } .meter i.s3, .meter i.s4 { background: var(--success); }
.rules { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-muted); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--success); } .rules li.ok::before { content: "✓ "; }
.rules li.bad { color: var(--danger); } .rules li.bad::before { content: "✕ "; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
.steps b { color: var(--ink); }
.steps .input { margin-top: 8px; }
.qr { width: 190px; margin: 10px 0 6px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hairline), var(--shadow-rest); }
.qr svg { display: block; width: 100%; height: auto; }
.qr.wait { height: 190px; display: grid; place-items: center; color: #5b6b82; font-size: 13px; }
.manual { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.manual code, .codes code { font-family: var(--font-mono); font-size: 13px; padding: 3px 8px; border-radius: 7px; background: var(--surface-sunken); color: var(--ink); }
.codes-box { display: flex; flex-direction: column; gap: 10px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.codes code { text-align: center; padding: 8px; font-size: 15px; letter-spacing: .08em; }
.databar { position: sticky; top: 0; z-index: 30; min-height: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 20px; font-size: 12.5px; background: var(--surface-solid); border-bottom: 1px solid var(--hairline); }
.databar .hello b { font-weight: 600; }
.databar .hello { color: var(--ink-muted); } .databar .hello b { color: var(--ink); }
.databar .data { padding: 2px 10px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-weight: 500; }
.databar .data:empty { display: none; }
.databar .sp { flex: 1; }
.databar button { border: 0; background: none; color: var(--flow); font-weight: 500; cursor: pointer; padding: 0; font-size: 12.5px; }
.databar button:hover { text-decoration: underline; }
#af-root .side { top: 36px; height: calc(100vh - 36px); }
#af-root .top { top: 36px; }
.account, .welcome { position: fixed; z-index: 45; left: 50%; top: 6vh; transform: translateX(-50%); width: min(880px, calc(100% - 24px)); max-height: 88vh; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface-solid); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5), 0 0 0 1px var(--hairline); }
.account h2 { font-size: 20px !important; }
.account-body { overflow-y: auto; padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.acc-sec { display: flex; flex-direction: column; gap: 10px; }
.acc-sec h3 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.acc-sec + .acc-sec { padding-top: 18px; border-top: 1px solid var(--hairline); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.acc-line .grow { flex: 1; min-width: 200px; color: var(--ink-muted); }
.acc-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.acc-form.inline { max-width: none; display: grid; grid-template-columns: 1fr 1.3fr 170px auto; align-items: end; }
.account .list .row { padding-left: 0; padding-right: 0; }
.tbl.users tr { cursor: default; } .tbl.users tr.off { opacity: .55; }
.tools.end { justify-content: flex-end; }
.welcome { top: 16vh; width: min(520px, calc(100% - 24px)); padding: 28px; gap: 12px; align-items: flex-start; }
.welcome h2 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 32px; letter-spacing: -0.02em; }
.welcome p { margin: 0; } .welcome ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 22px 24px; gap: 14px; } .auth-hello ul, .auth-foot, .auth-brand::after { display: none; } .auth-hello h1 { margin: 6px 0 0; font-size: 22px; }
  .auth-main { justify-content: flex-start; padding-top: 28px; }
  .acc-form.inline { grid-template-columns: minmax(0, 1fr); }
  #af-root .side { top: 0; height: auto; }
}
