.auth-body {
  min-height: 100vh;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.14), transparent 28%),
    linear-gradient(180deg, #07100f 0%, #0a1412 100%);
}

.auth-shell {
  max-width: 1180px;
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 0.9fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.auth-brand-panel,
.auth-card {
  padding: 48px;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.22), transparent 34%),
    linear-gradient(180deg, rgba(8, 16, 15, 0.96), rgba(13, 24, 22, 0.86));
}

.auth-brand-panel__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at top left, rgba(0, 0, 0, 0.7), transparent 68%);
  animation: grid-drift 24s linear infinite;
}

.auth-brand-lockup,
.auth-brand-panel__copy,
.auth-brand-points,
.auth-back {
  position: relative;
  z-index: 1;
}

.auth-brand-lockup {
  display: inline-flex;
  width: fit-content;
}

.auth-brand-panel__copy {
  display: grid;
  gap: 16px;
}

.auth-brand-panel h1 {
  max-width: 12ch;
  color: var(--text);
}

.auth-brand-panel p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-muted);
}

.auth-brand-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-brand-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}

.auth-brand-points li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.58em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(-45deg);
}

.auth-back {
  margin-top: auto;
  width: fit-content;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 18px;
  background: #f3f7f4;
  color: var(--ink);
}

.auth-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 5px;
  border-radius: 999px;
  background: rgba(8, 17, 15, 0.06);
  border: 1px solid rgba(8, 17, 15, 0.08);
}

.auth-tabs__link {
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #5a675f;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-tabs__link.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(8, 17, 15, 0.12);
}

.auth-tabs__link:not(.is-active):hover {
  color: var(--accent);
}

.auth-card .section-kicker {
  color: var(--accent);
}

.auth-card .auth-copy,
.auth-card .auth-note {
  color: #62726b;
}

.flash-stack--auth {
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  display: block;
  font-weight: 600;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(8, 17, 15, 0.14);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.58);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.auth-field {
  position: relative;
}

.auth-field input {
  padding-right: 86px;
}

.auth-field__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 62px;
  padding: 8px 12px;
  border: 1px solid rgba(8, 17, 15, 0.12);
  border-radius: 999px;
  background: rgba(8, 17, 15, 0.04);
  color: #163225;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-field__toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  color: var(--accent);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-note {
  margin: 0;
}

.auth-note a,
.auth-actions a,
.auth-brand-panel .text-link {
  color: var(--accent);
  font-weight: 700;
}

.auth-card .errorlist {
  margin: 0;
  padding-left: 18px;
  color: #b42318;
}

.auth-card .button {
  width: fit-content;
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand-panel__grid {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-back {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .auth-body {
    padding: 12px;
  }

  .auth-brand-panel,
  .auth-card {
    padding: 28px;
  }

  .auth-tabs {
    width: 100%;
  }

  .auth-tabs__link {
    flex: 1;
    text-align: center;
  }

  .auth-card .button {
    width: 100%;
    justify-content: center;
  }
}