@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0a0b; --bg-2: #0c0c0e; --surface: #111113; --surface-2: #17171a; --surface-3: #202024;
  --line: rgba(255, 255, 255, .075); --line-2: rgba(255, 255, 255, .12);
  --text: #f3f4f6; --muted: #9ca3af; --dim: #6b7280; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --sans: "Inter", system-ui, -apple-system, sans-serif; --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* left: image + claim */
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: #05070a; }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.85); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, .1) 40%, rgba(10, 10, 11, .9) 100%); }
.auth-art-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.auth-brand img { border-radius: 7px; }
.auth-kicker { font-size: 13px; font-weight: 500; color: var(--muted); }
.auth-claim h2 { max-width: 460px; margin-top: 10px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.auth-points { display: grid; gap: 12px; margin-top: 28px; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #d1d5db; }
.auth-points .i { width: 18px; height: 18px; color: var(--muted); }

/* right: form */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; }
.auth-box { width: 100%; max-width: 380px; margin: auto 0; padding: 24px 0; }
.auth-foot { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--dim); }
.auth-foot span { display: inline-flex; align-items: center; gap: 7px; }
.auth-foot .i { width: 14px; height: 14px; }
.auth-foot a { color: var(--dim); text-decoration: none; }
.auth-foot a:hover { color: var(--muted); }

.a-h h1 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.a-h p { margin-top: 6px; color: var(--muted); }
.a-h p b { color: var(--text); font-weight: 500; }
.a-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.a-back:hover { color: var(--text); }
.a-back .i { width: 15px; height: 15px; }
form { display: grid; gap: 16px; margin-top: 28px; }

.banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 11px 12px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.banner[hidden] { display: none; }
.banner .i { width: 16px; height: 16px; margin-top: 1px; }
.banner-err { background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .28); color: #fecaca; }
.banner-err .i { color: var(--bad); }
.banner-info { background: rgba(245, 158, 11, .07); border: 1px solid rgba(245, 158, 11, .25); color: #fde68a; }
.banner-info .i { color: var(--warn); }

.f { display: grid; gap: 7px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.f-l label { font-size: 13px; font-weight: 500; }
.f-opt { font-size: 12px; color: var(--dim); }
.f-in { position: relative; }
.f-in input { width: 100%; height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14.5px; outline: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
.f-in input::placeholder { color: var(--dim); }
.f-in input:hover { border-color: rgba(255, 255, 255, .2); }
.f-in input:focus { border-color: rgba(255, 255, 255, .35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .07); background: var(--surface); }
.f-in input[aria-invalid="true"] { border-color: rgba(248, 113, 113, .7); box-shadow: 0 0 0 3px rgba(248, 113, 113, .1); }
.f-in input[type="password"], .f-in input[data-pw] { padding-right: 46px; letter-spacing: .02em; }
.f-in:has(.f-eye) input { padding-right: 46px; }
.f-eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; color: var(--dim); }
.f-eye:hover { color: var(--text); background: var(--surface-2); }
.f-eye .i { width: 17px; height: 17px; }
.f-err, .f-caps { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.f-err { color: #fca5a5; }
.f-caps { color: #fcd34d; }
.f-caps .i { width: 14px; height: 14px; }
.f-err[hidden], .f-caps[hidden] { display: none; }

.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: -6px; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bars i { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .2s; }
.pw-meter span { min-width: 74px; text-align: right; font-size: 12px; color: var(--muted); }
.pw-meter[data-l="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-l="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-l="3"] i:nth-child(-n+3) { background: var(--ok); }
.pw-meter[data-l="4"] i { background: var(--ok); }
.pw-rules { display: grid; gap: 4px; margin-top: -6px; list-style: none; }
.pw-rules li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); transition: color .15s; }
.pw-rules .i { width: 13px; height: 13px; stroke-width: 2.4; opacity: .35; }
.pw-rules li.ok { color: var(--muted); }
.pw-rules li.ok .i { color: var(--ok); opacity: 1; }

.a-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 4px; border-radius: 9px; background: var(--text); color: #0b0c0e; font-weight: 600; transition: background .15s, transform .1s; }
.a-btn:hover { background: #fff; }
.a-btn:active { transform: translateY(1px); }
.a-btn .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.a-btn:hover .i { transform: translateX(2px); }
.a-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.a-btn[disabled] { cursor: progress; opacity: .85; }
.a-btn.is-busy .i { display: none; }
.a-btn.is-busy::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(11, 12, 14, .25); border-top-color: #0b0c0e; animation: spin .7s linear infinite; }
.a-btn-2 { width: 100%; margin-top: 28px; background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.a-btn-2:hover { background: var(--surface-2); }
@keyframes spin { to { transform: rotate(360deg); } }

.a-link { font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.a-link:hover { color: var(--text); text-decoration-color: var(--text); }
.a-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-align: center; }
.a-alt .a-link { color: var(--text); font-size: 13.5px; }
.a-setup { margin-top: 10px; padding-top: 0; border: 0; }
.a-fine { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.a-fine a { color: var(--muted); }

.a-state { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25); color: var(--ok); }
.a-state-w { background: var(--surface-2); border-color: var(--line-2); color: var(--muted); }
.a-steps { display: grid; gap: 0; margin-top: 24px; list-style: none; counter-reset: s; }
.a-steps li { position: relative; display: grid; gap: 2px; padding: 0 0 16px 32px; counter-increment: s; }
.a-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.a-steps li.done::before { content: "✓"; background: rgba(52, 211, 153, .15); color: var(--ok); }
.a-steps li:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: 24px; bottom: 4px; width: 1px; background: var(--line-2); }
.a-steps b { font-size: 13.5px; font-weight: 500; }
.a-steps span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-art-in { padding: 20px 20px 22px; }
  .auth-claim h2 { font-size: 20px; margin-top: 6px; }
  .auth-points { display: none; }
  .auth-main { padding: 8px 20px 24px; }
}
@media (max-width: 420px) { .f-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* request access: steps and account type */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.a-prog { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }
.a-prog i { height: 3px; border-radius: 2px; background: var(--surface-3); }
.a-prog i.on { background: var(--text); }
.a-prog + form { margin-top: 22px; }
.a-opts { display: grid; gap: 10px; border: 0; }
.a-opt { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.a-opt:hover { border-color: rgba(255, 255, 255, .25); }
.a-opt.is-on { border-color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--text); }
.a-opt input { position: absolute; opacity: 0; pointer-events: none; }
.a-opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.a-opt-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.a-opt.is-on .a-opt-i { color: var(--text); background: var(--surface-3); }
.a-opt-t b { display: block; font-size: 14.5px; font-weight: 600; }
.a-opt-t small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.a-opt-r { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.a-opt.is-on .a-opt-r { border-color: var(--text); background: var(--text); box-shadow: inset 0 0 0 4px var(--bg); }
#org-more { display: grid; gap: 14px; }
#org-more[hidden] { display: none; }
.a-roles { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.a-roles li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.a-roles b { font-weight: 500; }
.a-roles span { color: var(--muted); }
.f-ro { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* information boxes */
.a-info { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
form .a-info { margin-top: 0; }
.a-info .i { width: 16px; height: 16px; margin-top: 1px; color: var(--dim); }
.a-info b { color: var(--text); font-weight: 500; }
.banner-ok { background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .25); color: #a7f3d0; }
.banner-ok .i { color: var(--ok); }
.a-how { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.a-how-t { font-size: 12px; color: var(--dim); }
.a-how ol { display: grid; gap: 8px; margin-top: 10px; list-style: none; counter-reset: h; }
.a-how li { display: grid; grid-template-columns: 22px 70px minmax(0, 1fr); gap: 8px; align-items: baseline; counter-increment: h; font-size: 12.5px; }
.a-how li::before { content: counter(h); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); font-size: 11px; font-weight: 600; color: var(--muted); }
.a-how b { font-weight: 500; }
.a-how span { color: var(--muted); }
.a-how + form { margin-top: 20px; }
@media (max-width: 420px) { .a-how li { grid-template-columns: 22px minmax(0, 1fr); } .a-how span { grid-column: 2; } }

.auth-foot { gap: 20px; }
.auth-foot a { font-size: 12.5px; }

/* required confirmation (terms) */
.a-chk { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin: 4px 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.a-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-chk-b { width: 16px; height: 16px; margin-top: 1px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .28); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.a-chk input:checked + .a-chk-b { background: #f3f4f6; border-color: #f3f4f6; }
.a-chk input:checked + .a-chk-b::after { content: ''; width: 8px; height: 4px; border: solid #0b0c0e; border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
.a-chk input:focus-visible + .a-chk-b { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 2px; }
.a-chk a { color: var(--text); }
#terms-err { margin-top: -4px; }

/* Account type: one grouped list, quiet rows, a check on the chosen one */
.a-prog { gap: 4px; }
.a-prog i { height: 2px; }
.a-opts { gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.a-opt { grid-template-columns: 18px minmax(0, 1fr) 16px; gap: 14px; padding: 14px 16px; border: 0; border-radius: 0; transition: background .15s; }
.a-opt + .a-opt { border-top: 1px solid var(--line); }
.a-opt:hover { background: rgba(255, 255, 255, .025); }
.a-opt.is-on { background: var(--surface-2); box-shadow: none; }
.a-opt:has(input:focus-visible) { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: -2px; }
.a-opt-i { width: 18px; height: 18px; border-radius: 0; background: none; color: var(--dim); }
.a-opt-i .i { width: 18px; height: 18px; }
.a-opt.is-on .a-opt-i { background: none; color: var(--text); }
.a-opt-t b { font-size: 14px; font-weight: 500; }
.a-opt-t small { margin-top: 1px; font-size: 13px; }
.a-opt-c { display: grid; place-items: center; width: 16px; height: 16px; color: var(--text); opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.a-opt-c .i { width: 16px; height: 16px; }
.a-opt.is-on .a-opt-c { opacity: 1; transform: none; }
.a-hint { margin-top: -6px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.a-hint b { color: var(--muted); font-weight: 500; }
#org-more { display: grid; gap: 12px; }
#org-more[hidden] { display: none; }
.a-roles { border: 1px solid var(--line); border-radius: 10px; padding: 2px 12px; }
.a-roles li:last-child { border-bottom: 0; }
.a-hint[hidden] { display: none; }
.a-hint-in { margin-top: -4px; }
