.auth-page {
  min-height: 100vh;
  color: var(--text);
  background: #070709;
}
.auth-page .icon { width: 18px; height: 18px; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(380px, 1fr);
}
.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(var(--accent-rgb),.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(59,155,255,.1), transparent 50%),
    linear-gradient(180deg, #121218 0%, #0b0b0d 100%);
  border-right: 1px solid rgba(255,255,255,.06);
}
.auth-showcase::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 60%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.08), transparent 68%);
  pointer-events: none;
}
.auth-showcase-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -.04em;
  text-transform: lowercase;
}
.auth-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.auth-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb),.28);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-showcase-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin-bottom: 14px;
}
.auth-showcase-copy > p {
  color: #b7b7c0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 38ch;
}
.auth-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d8d8de;
  font-size: 14px;
  line-height: 1.45;
}
.auth-points .icon {
  margin-top: 1px;
  color: var(--accent);
}
.auth-showcase-foot {
  position: relative;
  z-index: 1;
  color: #6d6d76;
  font-size: 12px;
  line-height: 1.5;
  max-width: 42ch;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 8vw;
  background: #0b0b0d;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.auth-back:hover { color: var(--text); }
.auth-back-ico { transform: rotate(180deg); }
.auth-card-modern { width: min(420px, 100%); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.auth-tabs a {
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.auth-tabs a.is-on {
  color: var(--accent-ink);
  background: var(--accent);
}
.auth-head { margin-bottom: 22px; }
.auth-head h1 {
  font-size: 30px;
  letter-spacing: -.035em;
  margin-bottom: 8px;
}
.auth-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 7px; color: #c6c6cc; font-size: 13px; font-weight: 550; }
.auth-field small { color: var(--faint); font-weight: 450; }
.auth-control {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-control > .icon:first-child {
  position: absolute;
  left: 12px;
  color: #7a7a84;
  pointer-events: none;
}
.auth-control input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 42px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: #141418;
  outline: none;
  color: var(--text);
}
.auth-control input::placeholder { color: #5c5c66; }
.auth-control input:focus {
  border-color: rgba(var(--accent-rgb),.55);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.12);
}
.auth-eye {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #8a8a94;
  border-radius: 8px;
}
.auth-eye:hover { color: var(--text); background: rgba(255,255,255,.05); }
.auth-eye .icon:last-child { display: none; }
.auth-eye.is-on .icon:first-child { display: none; }
.auth-eye.is-on .icon:last-child { display: block; }
.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.auth-row a,
.auth-alt a,
.auth-check a { color: var(--accent-strong); font-weight: 600; }
.auth-row a:hover,
.auth-alt a:hover,
.auth-check a:hover { color: #f0d7b2; }
.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 15px;
}
.auth-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.auth-turnstile .cf-turnstile {
  width: 100%;
}
.auth-alt {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b3b3bb;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 450;
}
.auth-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.auth-page .alert { margin: 0 0 4px; }

body.is-light.auth-page { background: #f6f7f9; color: #18181b; }
body.is-light .auth-showcase {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border-right-color: #e7e8ec;
}
body.is-light .auth-showcase::after { display: none; }
body.is-light .auth-showcase-copy > p,
body.is-light .auth-points li { color: #3f3f46; }
body.is-light .auth-showcase-foot { color: #71717a; }
body.is-light .auth-kicker {
  background: #fff;
  border-color: #e4e4e7;
  color: #3f3f46;
}
body.is-light .auth-points .icon { color: #18181b; }
body.is-light .auth-panel { background: #f6f7f9; }
body.is-light .auth-back { color: #52525b; }
body.is-light .auth-back:hover { color: #18181b; }
body.is-light .auth-head h1 { color: #18181b; }
body.is-light .auth-head p { color: #52525b; }
body.is-light .auth-field { color: #3f3f46; }
body.is-light .auth-field small { color: #71717a; }
body.is-light .auth-control > .icon:first-child { color: #71717a; }
body.is-light .auth-control input {
  background: #fff;
  border-color: #d4d4d8;
  color: #18181b;
  box-shadow: none;
}
body.is-light .auth-control input::placeholder { color: #a1a1aa; }
body.is-light .auth-control input:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08);
}
body.is-light .auth-eye { color: #71717a; }
body.is-light .auth-eye:hover { color: #18181b; background: #f4f4f5; }
body.is-light .auth-tabs {
  background: #f4f4f5;
  border-color: #e4e4e7;
}
body.is-light .auth-tabs a { color: #52525b; }
body.is-light .auth-tabs a:hover { color: #18181b; }
body.is-light .auth-tabs a.is-on {
  background: #18181b;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 15, .12);
}
body.is-light .auth-row a,
body.is-light .auth-alt a,
body.is-light .auth-check a {
  color: #18181b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.is-light .auth-row a:hover,
body.is-light .auth-alt a:hover,
body.is-light .auth-check a:hover { color: #09090b; }
body.is-light .auth-check { color: #3f3f46; }
body.is-light .auth-check input { accent-color: #18181b; }
body.is-light .auth-alt { color: #52525b; }
body.is-light .auth-submit {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
  box-shadow: none;
}
body.is-light .auth-submit:hover {
  background: #09090b;
  border-color: #09090b;
}
body.is-light .auth-card-modern,
body.is-light .auth-panel .auth-card {
  background: #fff;
  border: 1px solid #e7e8ec;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, .04), 0 16px 40px rgba(15, 15, 15, .06);
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-showcase {
    padding: 22px 20px 20px;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  body.is-light .auth-showcase { border-bottom-color: #e7e8ec; }
  .auth-showcase-copy h2 { font-size: 28px; }
  .auth-points,
  .auth-showcase-foot { display: none; }
  .auth-panel { padding: 28px 20px 40px; }
  .auth-card-modern { width: 100%; }
  .auth-grid { grid-template-columns: 1fr; }
}
