:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #e7eff7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: #000; }

.brand {
  position: absolute;
  top: 39px;
  left: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e7eff7;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.12;
}

.brand-mark { width: 35px; height: 35px; flex: 0 0 auto; }

.page-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 42px 20px;
}

.login-card {
  width: min(484px, 100%);
  padding: 36px 44px 34px;
  border: 1px solid #1d3544;
  border-radius: 12px;
  background: #070c10;
  box-shadow: 0 0 0 1px rgb(12 23 30 / 12%);
}

.card-brand {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.35px;
}

.card-mark { width: 48px; height: 48px; flex: 0 0 auto; }

h1 {
  margin: 0;
  color: #e7eef5;
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -.35px;
  line-height: 1.3;
  text-align: center;
}

.intro {
  margin: 10px 0 34px;
  color: #96adbd;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin: 0 0 9px; color: #c5d1db; font-size: 12px; }

.auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #263f50;
  border-radius: 6px;
  outline: none;
  background: #0a1117;
  color: #dbe7f1;
  font: inherit;
  font-size: 13px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-form input::placeholder { color: #8297a7; opacity: 1; }
.auth-form input:focus-visible { border-color: #1782fb; box-shadow: 0 0 0 3px rgb(23 130 251 / 22%); }
.auth-form .signup-email-label { margin-top: 18px; }

.info-box {
  display: flex;
  min-height: 61px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  padding: 11px 12px;
  border: 1px solid #1b3a4e;
  border-radius: 6px;
  background: #0b1c2a;
  color: #a9c0d0;
  font-size: 12px;
  line-height: 1.55;
}

#signup-form .info-box { min-height: 44px; align-items: center; }
.signup-turnstile { display: flex; justify-content: center; min-height: 65px; margin-top: 18px; }
.signup-turnstile[hidden] { display: none; }

.info-icon { flex: 0 0 auto; color: #96b0c3; font-size: 12px; line-height: 1.55; }

.primary-button {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 29px;
  border: 0;
  border-radius: 6px;
  background: #1c7ff0;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  transition: background 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.primary-button:hover { background: #2d8cff; }
.primary-button:focus-visible, .text-button:focus-visible, .signup-line a:focus-visible { outline: 2px solid #62b8ff; outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: .7; }
.primary-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.signup-line {
  margin: 28px 0 0;
  color: #8fa7b9;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.signup-line a { margin-left: 6px; color: #00d5ee; text-decoration: none; }
.signup-line a:hover { text-decoration: underline; }
.terms-check{display:flex;align-items:flex-start;gap:9px;margin-top:16px!important;color:#91a7b9!important;font-size:11px!important;line-height:1.5}
.terms-check input{width:14px;height:14px;flex:0 0 auto;margin:1px 0 0;accent-color:#1c7ff0}
.terms-check a{color:#5ec9e7;text-decoration:none}
.terms-check a:hover{text-decoration:underline}
.policy-draft-note{margin:9px 0 0;color:#8499a9;font-size:10px;line-height:1.45;text-align:center}
.code-inputs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin:17px 0 15px}
.code-inputs input{height:59px;padding:0;text-align:center;font-size:21px;font-weight:600;font-variant-numeric:tabular-nums}
.inline-button{border:0;padding:0 0 0 7px;background:none;color:#00d5ee;font:inherit;cursor:pointer}
.inline-button:disabled{color:#879eae;cursor:default}

.form-hint { margin: -3px 0 14px; color: #97acbb; font-size: 12px; line-height: 1.5; }
.field-hint { margin-top: 8px; color: #879eae; font-size: 11px; }
.text-button { align-self: center; margin-top: 17px; padding: 6px 8px; border: 0; background: transparent; color: #5ec9e7; cursor: pointer; font: inherit; font-size: 12px; }
.text-button:hover { color: #9aeaff; }
.feedback { min-height: 0; margin: 0; color: #ffb6ad; font-size: 12px; line-height: 1.45; text-align: center; }
.feedback:not(:empty) { margin-top: 14px; }
.signed-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.signed-in strong { margin-top: 9px; font-size: 16px; }
.signed-in p { margin: 8px 0 0; color: #96adbd; font-size: 12px; line-height: 1.55; }
.portal-entry { margin-top: 21px; text-decoration: none; }
.portal-entry:hover { background: #2d8cff; }
.success-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #0b362b; color: #51dda7; font-size: 18px; }
.is-hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-footer {
  position: fixed;
  right: 16px;
  bottom: 39px;
  left: 16px;
  color: #70899a;
  font-size: 11px;
  letter-spacing: .1px;
  text-align: center;
}

@media (max-width: 600px) {
  .brand { top: 20px; left: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .page-main { min-height: 100svh; padding: 74px 16px 83px; }
  .login-card { padding: 30px 23px 27px; }
  .card-brand { font-size: 22px; }
  h1 { font-size: 21px; }
  .intro { margin-bottom: 28px; }
  .code-inputs{gap:8px;margin:14px 0}
  .code-inputs input{height:53px;font-size:19px}
  .page-main:has(#signup-form:not(.is-hidden)){padding-top:70px;padding-bottom:82px}
  .page-footer { position: absolute; bottom: 20px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
