.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 34px clamp(28px, 4vw, 52px) 48px;
}
.auth-visual.ax-gridbox::before {
  top: 0;
  bottom: 0;
}
.auth-quote {
  position: relative;
  max-width: 540px;
  margin: 0;
}
.auth-quote p {
  font: 700 clamp(22px, 2.3vw, 32px)/1.3 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(var(--bg-rgb), 0.85);
}
.auth-quote footer {
  margin-top: 18px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px clamp(20px, 5vw, 64px) 36px;
  border-left: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-card {
  width: min(100%, 420px);
  margin: auto;
  padding: 40px 0 24px;
  display: grid;
  gap: 22px;
}
.auth-mobile-brand {
  display: none;
}
.auth-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.auth-title .ax-accent {
  color: var(--accent);
}
:root[data-theme="light"] .auth-title .ax-accent {
  color: var(--accent-text);
}
.auth-subtitle {
  margin-top: 12px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 12px;
}
.auth-form .ax-input {
  height: 50px;
}

.auth-msg {
  display: none;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: none;
  outline: none;
  font-size: 14px;
  line-height: 1.45;
}
.auth-msg.show {
  display: block;
  animation: ax-modal-in 0.4s var(--ease) both;
}
.auth-msg.error {
  background: var(--err-soft);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--err);
}
.auth-msg.ok {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
}
.turnstile-wrap #captcha:empty {
  display: none;
}

.auth-pill-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 15.5px/1 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition:
    background-color 0.2s ease,
    box-shadow 0.35s var(--ease),
    transform 0.2s var(--ease);
  cursor: pointer;
}
.auth-pill-submit:hover:not(:disabled) {
  background: var(--accent-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    var(--shadow-glow);
}
.auth-pill-submit:active {
  transform: translateY(1px);
}
.auth-pill-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-pill-submit i {
  font-size: 18px;
}

.auth-footer-link {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--fg-3);
  font-size: 14px;
}
.auth-footer-link a {
  color: var(--accent-text);
  font-weight: 600;
}
.auth-footer-link a:hover {
  text-decoration: underline;
}
.auth-terms-note {
  color: var(--fg-4);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}
.auth-terms-note a {
  color: var(--fg-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.launch-progress {
  display: none;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--field);
}
.launch-progress.show {
  display: block;
}
.lp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--fg-2);
  font-size: 13px;
}
.lp-head #lp-pct {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lp-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.lp-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
  transition: width 0.35s var(--ease);
}

.auth-note {
  margin: 0 0 14px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}
.auth-note.small {
  color: var(--fg-3);
  font-size: 12.5px;
}
.device-box {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.7;
}
.device-box .device-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--fg);
  font-weight: 600;
}
.device-box .mono {
  color: var(--accent-text);
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-panel {
    border-left: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .auth-mobile-brand {
    display: inline-flex;
    margin-bottom: 4px;
  }
  .auth-card {
    padding-top: 24px;
  }
}
