:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; color: #f4f4f5; background: #09090b; }
.auth-card { width: min(440px, 100%); padding: 28px; border: 1px solid #27272a; border-radius: 16px; background: #18181b; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.auth-card.wide { width: min(760px, 100%); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
h1 { margin: 0; font-size: 22px; } h2 { margin: 24px 0 12px; font-size: 17px; }
p { color: #a1a1aa; line-height: 1.5; }
label { display: grid; gap: 6px; margin: 14px 0; color: #d4d4d8; font-size: 13px; }
input, select { width: 100%; height: 44px; padding: 0 12px; color: #fafafa; background: #09090b; border: 1px solid #3f3f46; border-radius: 8px; }
input:focus, select:focus { outline: 2px solid #a7f3d0; outline-offset: 1px; }
textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px; color: #fafafa; background: #09090b; border: 1px solid #3f3f46; border-radius: 8px; font: inherit; line-height: 1.5; }
textarea:focus { outline: 2px solid #a7f3d0; outline-offset: 1px; }
button, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 8px; color: #052e22; background: #a7f3d0; font-weight: 700; cursor: pointer; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
.secondary { color: #f4f4f5; background: #3f3f46; }
.danger { color: #fff; background: #7f1d1d; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.flash { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #3f3f46; }
.flash.error { background: #7f1d1d; } .flash.success { background: #14532d; }
.invite { padding: 12px; overflow-wrap: anywhere; border: 1px solid #3f3f46; border-radius: 8px; background: #09090b; color: #d1fae5; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 10px; border-bottom: 1px solid #27272a; text-align: left; font-size: 13px; }
.table-wrap { overflow-x: auto; } .inline-actions { display: flex; gap: 6px; } .inline-actions form { margin: 0; } .inline-actions button { min-height: 34px; padding: 0 10px; font-size: 12px; }
.muted { color: #a1a1aa; font-size: 12px; }
.captcha-wrap { min-height: 72px; margin: 18px 0 14px; overflow: hidden; border-radius: 10px; }
.captcha-wrap altcha-widget { display: block; width: 100%; --altcha-color-base: #111512; --altcha-color-border: #3f4b44; --altcha-color-text: #f4f4f5; --altcha-color-border-focus: #a7f3d0; --altcha-color-footer-bg: #0b0d0c; }
.onboarding-body { background: radial-gradient(circle at 50% 0, rgba(167,243,208,.09), transparent 36%), #09090b; }
.onboarding-card { position: relative; overflow: hidden; border-color: #30453a; box-shadow: 0 30px 100px rgba(0,0,0,.52); }
.onboarding-card:before { content: ""; position: absolute; inset: 0 15% auto; height: 1px; background: linear-gradient(90deg, transparent, #a7f3d0, transparent); }
.onboarding-progress { height: 4px; margin: -28px -28px 28px; background: #27272a; }
.onboarding-progress i { display: block; width: 100%; height: 100%; background: #a7f3d0; box-shadow: 0 0 18px rgba(167,243,208,.45); }
.onboarding-intro { margin: 2px 0 24px; padding: 18px; border: 1px solid #29372f; border-radius: 13px; background: #101512; }
.onboarding-intro > span { display: inline-flex; padding: 5px 8px; border: 1px solid #335442; border-radius: 999px; color: #a7f3d0; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.onboarding-intro h2 { margin: 13px 0 0; color: #fff; font-size: 20px; }
.onboarding-intro p { margin: 7px 0 0; font-size: 13px; }
.privacy-note { margin: 12px 0 18px; padding-left: 12px; border-left: 2px solid #335442; font-size: 11px; }
.legal-consent { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; line-height: 1.5; }
.legal-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #a7f3d0; }
.legal-consent a, .auth-links a { color: #a7f3d0; text-decoration: underline; text-underline-offset: 3px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #27272a; font-size: 12px; }
.onboarding-card form > button[type="submit"] { width: 100%; }
.onboarding-logout { margin-top: 10px; }
.onboarding-logout button { width: 100%; }
@media (max-width: 390px) {
  .captcha-wrap { min-height: 66px; }
}

/* Landing-aligned login and registration. */
.auth-entry-page {
  --auth-line: rgba(255,255,255,.16);
  --auth-muted: rgba(255,255,255,.56);
  --auth-pad: max(24px, calc((100vw - 1440px)/2 + 48px));
  display: block;
  place-items: normal;
  min-height: 100svh;
  padding: 0;
  overflow-x: hidden;
  background: #000;
  color: #fff;
}
.auth-page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0 var(--auth-pad);
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(25% - .5px), rgba(255,255,255,.035) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.035) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), rgba(255,255,255,.035) 75%, transparent calc(75% + .5px));
}
.auth-site-header,
.auth-site-footer,
.auth-entry-shell {
  position: relative;
  z-index: 1;
  width: auto;
  justify-self: stretch;
  margin-right: var(--auth-pad);
  margin-left: var(--auth-pad);
}
.auth-site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--auth-line);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.auth-brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  filter: grayscale(1);
}
.auth-brand strong {
  font-size: 14px;
  letter-spacing: .12em;
}
.auth-brand span {
  padding-left: 12px;
  border-left: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.auth-home-link b { color: #fff; font-size: 15px; font-weight: 400; }
.auth-entry-shell {
  min-height: calc(100svh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
  padding: 70px 0;
}
.auth-register-shell {
  grid-template-columns: minmax(0, 1fr) minmax(520px, .85fr);
  align-items: start;
}
.auth-entry-copy { max-width: 850px; }
.auth-register-shell .auth-entry-copy {
  position: sticky;
  top: 140px;
  padding-top: 60px;
}
.auth-eyebrow,
.auth-panel-top {
  color: rgba(255,255,255,.48);
  font-size: 9px;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.auth-entry-copy h1 {
  margin: 38px 0 34px;
  font-size: clamp(58px, 7.3vw, 118px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.auth-entry-copy h1 span { display: block; }
.auth-entry-copy .auth-outline {
  margin-top: .04em;
  color: #0b0b0b;
  -webkit-text-stroke: 1px rgba(255,255,255,.72);
  paint-order: stroke fill;
}
.auth-entry-copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.75;
}
.auth-trust-row,
.auth-register-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
}
.auth-trust-row span,
.auth-register-steps span {
  color: rgba(255,255,255,.46);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.auth-register-steps span { display: grid; gap: 8px; line-height: 1.45; }
.auth-register-steps b { color: #fff; font-size: 10px; font-weight: 500; }
.auth-form-panel {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: #050505;
  box-shadow: none;
}
.auth-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--auth-line);
}
.auth-panel-heading { margin: 42px 0 30px; }
.auth-panel-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.035em;
}
.auth-panel-heading p {
  margin: 9px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
}
.auth-entry-page form { margin: 0; }
.auth-entry-page label {
  margin: 0 0 18px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-entry-page input,
.auth-entry-page select {
  height: 50px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 2px;
  background: #000;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}
.auth-entry-page input::placeholder { color: rgba(255,255,255,.26); }
.auth-entry-page input:focus,
.auth-entry-page select:focus {
  outline: 1px solid #fff;
  outline-offset: 0;
  border-color: #fff;
}
.auth-entry-page form > button {
  width: 100%;
  min-height: 52px;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.auth-entry-page form > button:hover { background: #d8d8d8; }
.auth-entry-page form > button b { font-size: 17px; font-weight: 400; }
.auth-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-form-note {
  margin: -7px 0 20px;
  color: rgba(255,255,255,.38);
  font-size: 10px;
}
.auth-entry-page .legal-consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}
.auth-entry-page .legal-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #fff;
}
.auth-entry-page .legal-consent a,
.auth-entry-page .auth-panel-footer a {
  color: #fff;
  text-underline-offset: 3px;
}
.auth-entry-page .captcha-wrap {
  min-height: 70px;
  margin: 20px 0 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  background: #000;
}
.auth-entry-page .captcha-wrap altcha-widget {
  --altcha-color-base: #000;
  --altcha-color-border: rgba(255,255,255,.22);
  --altcha-color-text: #fff;
  --altcha-color-border-focus: #fff;
  --altcha-color-footer-bg: #050505;
}
.auth-entry-page .flash {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 2px;
  background: #0b0b0b;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}
.auth-entry-page .flash.error { border-color: rgba(255,255,255,.5); background: #141414; }
.auth-entry-page .flash.success { border-color: rgba(255,255,255,.36); background: #101010; }
.auth-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-line);
  color: rgba(255,255,255,.42);
  font-size: 10px;
}
.auth-panel-footer a {
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.auth-site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--auth-line);
  color: rgba(255,255,255,.34);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.auth-site-footer a { color: rgba(255,255,255,.55); text-decoration: none; }
.auth-site-footer a:hover { color: #fff; }

@media (max-width: 920px) {
  .auth-entry-page { --auth-pad: 28px; }
  .auth-entry-shell,
  .auth-register-shell {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 64px 0;
  }
  .auth-register-shell .auth-entry-copy {
    position: static;
    padding-top: 0;
  }
  .auth-entry-copy { max-width: 700px; }
  .auth-entry-copy h1 { font-size: clamp(62px, 12vw, 96px); }
  .auth-form-panel { max-width: 680px; justify-self: end; }
}
@media (max-width: 600px) {
  .auth-entry-page { --auth-pad: 18px; }
  .auth-site-header { height: 76px; }
  .auth-brand span { display: none; }
  .auth-home-link { font-size: 8px; }
  .auth-entry-shell,
  .auth-register-shell {
    min-height: 0;
    gap: 44px;
    padding: 62px 0 74px;
  }
  .auth-entry-copy h1 {
    margin: 30px 0 26px;
    font-size: clamp(48px, 15.5vw, 68px);
  }
  .auth-entry-copy > p { font-size: 13px; }
  .auth-trust-row,
  .auth-register-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 38px;
  }
  .auth-form-panel { padding: 20px; }
  .auth-panel-heading { margin: 34px 0 26px; }
  .auth-panel-heading h2 { font-size: 29px; }
  .auth-field-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-panel-footer { align-items: flex-start; flex-direction: column; }
  .auth-site-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    padding: 26px 0;
  }
  .auth-site-footer nav { gap: 14px 20px; line-height: 1.6; }
}
