:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e8edf0;
  background: #060d15;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; min-height: 100%; }
body { min-height: 100svh; isolation: isolate; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
svg { display: block; flex-shrink: 0; }

.space { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 45% 32%, #15253680, transparent 57%), radial-gradient(ellipse at 91% 91%, #1a314b45, transparent 46%), linear-gradient(145deg, #080f19, #050a12 64%, #09131f); }
.space::before { content: ""; position: absolute; inset: 0; opacity: .48; background: radial-gradient(circle at 12% 29%, #b9d1e1 0 1px, transparent 1.5px), radial-gradient(circle at 82% 24%, #acc5db 0 .7px, transparent 1.5px), radial-gradient(circle at 63% 12%, #acc5db 0 .5px, transparent 1.3px), radial-gradient(circle at 74% 76%, #acc5db 0 .6px, transparent 1.4px), radial-gradient(circle at 20% 80%, #acc5db 0 .6px, transparent 1.4px); }
.orbit { position: absolute; width: 100vmax; height: 100vmax; left: 43%; top: 23%; border: 1px solid #8faec511; border-radius: 50%; box-shadow: 0 0 0 14px #9abbd103, 0 0 0 45px #9abbd104; transform: rotate(-35deg) scaleY(.75); }
.site-header { min-height: 77px; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #8faac413; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 550; line-height: 1.3; letter-spacing: .015em; }
.brand svg { width: 24px; height: 24px; }
.private-label { display: inline-flex; align-items: center; gap: 7px; color: #a5b4c1; font-size: 11px; letter-spacing: .02em; }
.private-label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
main { display: grid; place-items: center; min-height: calc(100svh - 77px); padding: 40px 24px 60px; }
.login-card { width: min(100%, 448px); position: relative; padding: 41px 40px 27px; border: 1px solid #8da5bb38; border-radius: 24px; background: linear-gradient(145deg, #182635ed, #0b1521f5 75%); box-shadow: 0 28px 90px #0006, inset 0 1px 0 #dcecff08; }
.card-topline { position: absolute; top: -1px; left: 20%; width: 60%; height: 1px; background: linear-gradient(90deg, transparent, #b1cce16b, transparent); }
.eyebrow { margin: 0 0 14px; color: #a8c0d3; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(29px, 5vw, 35px); font-weight: 550; line-height: 1.18; letter-spacing: -.045em; }
.intro { margin: 12px 0 29px; color: #a9b8c6; font-size: 14px; line-height: 1.6; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.field + .field { margin-top: 20px; }
label { display: block; margin: 0 0 9px; color: #d6e0e8; font-size: 12px; font-weight: 550; line-height: 1.4; }
input { display: block; width: 100%; min-width: 0; height: 49px; padding: 0 14px; border: 1px solid #7795ad52; border-radius: 9px; background: #07111bbb; color: #edf5fc; font-size: 16px; line-height: normal; transition: border-color .16s, box-shadow .16s; }
input:focus { outline: none; border-color: #afcce3; box-shadow: 0 0 0 3px #aecce119; }
input[aria-invalid="true"] { border-color: #d19b94; }
input:disabled { opacity: .65; }
input:-webkit-autofill { -webkit-text-fill-color: #edf5fc; -webkit-box-shadow: 0 0 0 1000px #101d2b inset; caret-color: #edf5fc; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-toggle { position: absolute; top: 3px; right: 3px; bottom: 3px; min-width: 63px; border: 0; border-radius: 6px; background: transparent; color: #b5c8d8; font-size: 12px; font-weight: 550; }
.password-toggle:hover { color: #edf5fc; background: #aecce110; }
button:focus-visible { outline: 2px solid #c0d7e8; outline-offset: 4px; }
.sign-in { position: relative; width: 100%; height: 49px; margin-top: 27px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dceaf5aa; border-radius: 9px; background: linear-gradient(135deg, #cee1ef, #adc6da); color: #0a1a28; font-size: 14px; font-weight: 650; box-shadow: 0 4px 14px #0002; transition: filter .16s, opacity .16s; }
.sign-in:hover:not(:disabled) { filter: brightness(1.07); }
.sign-in:active:not(:disabled) { filter: brightness(.97); }
.sign-in:disabled { opacity: .55; }
.sign-in-arrow { position: absolute; right: 17px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spinner { display: none; width: 14px; height: 14px; border: 1.5px solid #0a1a2840; border-top-color: currentColor; border-radius: 50%; animation: rotate .8s linear infinite; }
.sign-in[data-pending="true"] .spinner { display: block; }
.sign-in[data-pending="true"] .sign-in-arrow { display: none; }
.feedback-area { min-height: 47px; padding-top: 13px; }
#login-feedback { margin: 0; color: #a9b8c6; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#login-feedback[data-tone="error"] { color: #edb4ad; }
.retry { margin: 7px 0 4px; padding: 4px 0; border: 0; background: transparent; color: #d0e3f2; font-size: 12px; text-underline-offset: 4px; text-decoration: underline; }
.invite-note { margin: 10px 0 0; padding-top: 19px; border-top: 1px solid #94afc41c; color: #a0afbd; text-align: center; font-size: 11px; line-height: 1.6; }
.noscript { color: #edb4ad; font-size: 12px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .site-header { min-height: 65px; padding-inline: max(16px, env(safe-area-inset-left)); gap: 10px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand svg { width: 22px; height: 22px; }
  .private-label { font-size: 10px; gap: 5px; }
  main { min-height: calc(100svh - 65px); padding: 24px 16px 40px; }
  .login-card { padding: 31px 24px 23px; border-radius: 20px; }
  .intro { font-size: 13px; }
}
@media (max-height: 650px) { main { padding-block: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
