.eyebrow--on-dark {
  color: #a5b4fc;
}

/* Authentication layout: split brand panel + focused form. */

.auth-page {
  min-height: 100vh;
  background: var(--bg);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: 100vh;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 44px 52px;
  background:
    radial-gradient(circle at 78% 8%, rgba(99, 102, 241, 0.28), transparent 38%),
    radial-gradient(circle at 0% 88%, rgba(16, 185, 129, 0.1), transparent 34%),
    #080d1c;
  color: #fff;
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 32%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 72% at 50% 32%, #000 20%, transparent 78%);
  pointer-events: none;
}

.auth-aside::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -170px;
  border: 1px solid rgba(165, 180, 252, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(165, 180, 252, 0.035),
    0 0 0 130px rgba(165, 180, 252, 0.022);
  pointer-events: none;
}

.auth-aside__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 470px;
  min-height: calc(100vh - 88px);
  margin: 0 auto;
}

.auth-aside__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-aside__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(165, 180, 252, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.08);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.auth-aside__content {
  margin-top: clamp(56px, 12vh, 120px);
}

.auth-aside h1 {
  max-width: 440px;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.auth-aside h1 .accent {
  color: #a5b4fc;
}

.auth-aside__lede {
  max-width: 400px;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.65;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-feature__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  flex: none;
}

.auth-feature__check svg {
  width: 11px;
  height: 11px;
}

/* Compact command-center preview */
.aside-preview {
  position: relative;
  margin-top: auto;
  padding-top: 54px;
}

.aside-preview__card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.72));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
}

.aside-preview__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.aside-preview__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-600);
  color: #fff;
}

.aside-preview__icon svg {
  width: 14px;
  height: 14px;
}

.aside-preview__title {
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
}

.aside-preview__count {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 9px;
  font-weight: 600;
}

.aside-preview__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.aside-preview__avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 8px;
  font-weight: 600;
  flex: none;
}

.aside-preview__copy {
  min-width: 0;
  flex: 1;
}

.aside-preview__copy strong {
  display: block;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aside-preview__copy span {
  display: block;
  overflow: hidden;
  color: #7c8ba1;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aside-preview__approve {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--brand-600);
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.aside-preview__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 11px;
  color: #64748b;
  font-size: 9px;
}

.aside-preview__pulse {
  position: relative;
  display: flex;
  width: 6px;
  height: 6px;
}

.aside-preview__pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-ring 2.4s ease-out infinite;
}

.aside-preview__pulse::after {
  content: '';
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.auth-aside__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: #64748b;
  font-size: 10.5px;
}

.auth-aside__footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Right side */
.auth-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background:
    radial-gradient(ellipse 85% 55% at 70% 0%, rgba(224, 231, 255, 0.6), transparent 65%),
    var(--bg);
}

.auth-shell {
  width: 100%;
  max-width: 424px;
}

.auth-mobile-brand {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 424px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  transition: color 140ms ease;
}

.auth-back:hover {
  color: var(--ink);
}

.auth-back svg {
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.auth-back:hover svg {
  transform: translateX(-2px);
}

.auth-header {
  margin-bottom: 26px;
}

.auth-header h1 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.auth-header p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 13.5px;
  line-height: 1.55;
}

.auth-switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: var(--brand-600);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--faint);
  font-size: 10.5px;
  text-align: center;
}

.auth-trust svg {
  width: 12px;
  height: 12px;
  color: var(--success-bright);
}

.auth-legal {
  margin-top: 16px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.auth-legal a {
  color: var(--subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Password strength */
.strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.strength__track {
  display: flex;
  gap: 4px;
  flex: 1;
}

.strength__bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background-color 160ms ease;
}

.strength__bar.is-on {
  background: var(--brand-500);
}

.strength__label {
  width: 52px;
  color: var(--subtle);
  font-size: 10px;
  text-align: right;
}

/* Dev-only token delivery */
.dev-delivery {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--brand-200);
  border-radius: var(--radius-sm);
  background: var(--brand-50);
}

.dev-delivery__head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-delivery p {
  margin-top: 5px;
  color: #4338ca;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-word;
}

.dev-delivery a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* Verification states */
.state-panel {
  padding: 8px 0 2px;
  text-align: center;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: var(--brand-50);
  color: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--brand-100);
}

.state-icon svg {
  width: 24px;
  height: 24px;
}

.state-icon--success {
  background: var(--success-bg);
  color: var(--success);
  box-shadow: inset 0 0 0 1px var(--success-border);
}

.state-icon--error {
  background: var(--danger-bg);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger-border);
}

.state-panel h1 {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.state-panel p {
  max-width: 310px;
  margin: 8px auto 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
}

.state-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.state-loading {
  margin-top: 26px;
}

/* Responsive */
@media (max-width: 1040px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-main {
    min-height: 100vh;
    padding: 32px 20px 48px;
    align-items: flex-start;
  }

  .auth-shell {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .auth-mobile-brand .brand {
    font-size: 16px;
  }

  .auth-card {
    padding: 28px;
  }
}

@media (max-width: 420px) {
  .auth-main {
    padding: 22px 14px 36px;
  }

  .auth-card {
    padding: 22px;
    border-radius: var(--radius);
  }

  .auth-header h1 {
    font-size: 24px;
  }
}

@media (max-height: 840px) and (min-width: 1041px) {
  .aside-preview {
    display: none;
  }

  .auth-aside__content {
    margin-top: 44px;
  }

  .auth-aside__footer {
    margin-top: auto;
    padding-top: 24px;
  }
}

.auth-card > .alert {
  margin-bottom: 18px;
}

.dev-delivery .btn {
  margin-top: 10px;
}

.auth-form-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
}

.auth-form-note svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: none;
}

.input:disabled {
  background: var(--bg);
  color: var(--subtle);
  cursor: not-allowed;
}

.alert .alert-icon-success {
  display: none;
}

.alert.alert--success .alert-icon-success {
  display: block;
}

.alert.alert--success .alert-icon-error {
  display: none;
}
