/* Login / registration share one compact form and the approved NAI placeholder. */
* { box-sizing: border-box; }
html { color-scheme: dark; }
body.login-page {
  margin: 0; min-width: 320px; background: #0b0e0d; color: #edf1e9;
  font-family: 'Golos Text', 'Avenir Next', sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
[hidden] { display: none!important; }
:focus-visible { outline: 2px solid #c9ff4f; outline-offset: 4px; }
::selection { background: #c9ff4f; color: #0b0e0d; }
.auth-header {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 32px; border-bottom: 1px solid #29312b;
}
.auth-brand { font-family: Unbounded, 'Golos Text', sans-serif; font-size: 15px; letter-spacing: -.4px; font-weight: 700; line-height: 1.2; }
.auth-brand small { font-family: 'Golos Text', sans-serif; display: inline; margin-left: 8px; font-size: 14px; font-weight: 400; color: #9ca69d; letter-spacing: .06em; }
.auth-actions { display: flex; align-items: center; gap: 22px; color: #edf1e9; font-size: 14px; }
.auth-price { min-height: 40px; padding: 8px 14px; border: 1px solid #414b43; border-radius: 8px; color: #edf1e9; background: transparent; }
.auth-back { min-height: 40px; display: inline-flex; align-items: center; }
.auth-layout { min-height: calc(100svh - 77px); display: grid; grid-template-columns: minmax(360px,.92fr) minmax(360px,1.08fr); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 42px 40px; }
.auth-inner { width: 100%; max-width: 430px; }
.auth-kicker { display: block; font-size: 11px; letter-spacing: .12em; color: #9ca69d; margin-bottom: 12px; }
.auth-inner h1 { font-size: 32px; font-weight: 650; letter-spacing: -.75px; line-height: 1.2; margin: 0 0 12px; }
.auth-inner > p { margin: 0 0 22px; font-size: 15px; color: #9ca69d; line-height: 1.6; }
.mode-tabs { display: flex; gap: 26px; padding: 0; margin: 27px 0 25px; border-bottom: 1px solid #29312b; }
.mode-tabs button { min-height: 44px; padding: 8px 1px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9ca69d; font-size: 15px; }
.mode-tabs button[aria-selected=true] { color: #edf1e9; border-bottom-color: #c9ff4f; font-weight: 600; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 8px; color: #edf1e9; font-size: 14px; }
.field input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #414b43; border-radius: 8px; background: #101511; color: #edf1e9; font-size: 15px; }
.field input::placeholder { color: #818c83; opacity: 1; }
.field input:focus { border-color: #c9ff4f; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 16px; background: #c9ff4f; color: #0b0e0d; border: 1px solid #c9ff4f; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background .15s; }
.auth-submit:not(:disabled):hover { background: #d6ff7f; border-color: #d6ff7f; }
.status { margin: 13px 0 0; color: #ffaaaa; font-size: 14px; line-height: 1.6; }
.status:empty { margin: 0; }
.auth-inner .small-note { margin: 20px 0 0; color: #9ca69d; font-size: 13px; line-height: 1.6; }
.setup-link { min-height: 36px; margin-top: 14px; padding: 5px 0; border: 0; background: transparent; color: #bbc8b4; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.auth-identity { position: relative; display: flex; align-items: center; justify-content: center; background: #d6ff7f; color: #0b0e0d; border-left: 1px solid #29312b; padding: 38px; overflow: hidden; }
.identity-tag { position: absolute; top: 28px; left: 30px; color: #1d2b19; font-size: 11px; letter-spacing: .08em; }
.nai-wordmark { color: #0b0e0d; font-family: Unbounded, 'Golos Text', sans-serif; font-size: clamp(120px,15vw,240px); font-weight: 700; line-height: 1; letter-spacing: -.06em; padding-right: .06em; white-space: nowrap; }
.identity-foot { position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; justify-content: space-between; gap: 20px; color: #1d2b19; font-size: 12px; }
@media (max-width: 1000px) {
  .auth-layout { grid-template-columns: minmax(330px,1fr) minmax(280px,1fr); }
  .auth-form { padding: 36px 28px; }
  .auth-brand { font-size: 13px; }
  .nai-wordmark { font-size: clamp(110px,14vw,175px); }
  .identity-foot { flex-direction: column; gap: 6px; }
}
@media (max-width: 720px) {
  .auth-layout { display: block; min-height: calc(100svh - 73px); }
  .auth-header { min-height: 73px; padding: 15px 20px; gap: 14px; }
  .auth-brand { font-size: 12px; }
  .auth-brand small { display: block; margin: 5px 0 0; font-size: 10px; letter-spacing: .22em; }
  .auth-actions { gap: 10px; font-size: 13px; }
  .auth-price { padding: 7px 10px; min-height: 40px; }
  .auth-back { font-size: 13px; white-space: nowrap; }
  .auth-form { min-height: calc(100svh - 73px); padding: 34px 24px; align-items: flex-start; }
  .auth-inner { max-width: 430px; margin: 18px auto; }
  .auth-inner h1 { font-size: 30px; }
  .auth-identity { display: none; }
}
@media (max-width: 390px) {
  .auth-header { padding-left: 16px; padding-right: 16px; }
  .auth-form { padding-left: 20px; padding-right: 20px; }
  .auth-brand { font-size: 11px; }
  .auth-inner h1 { font-size: 28px; }
  .auth-kicker { font-size: 10px; }
  .auth-actions { gap: 7px; }
  .auth-price { font-size: 12px; padding: 8px; }
  .auth-back { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
