.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(224,123,29,.08), transparent 25rem),
    var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr);
}

.auth-brand-panel {
  min-height: 100vh;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    var(--sidebar-bg);
  color: white;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.auth-brand-panel::before {
  width: 540px;
  height: 540px;
  right: -280px;
  top: -160px;
}

.auth-brand-panel::after {
  width: 360px;
  height: 360px;
  left: -210px;
  bottom: -170px;
}

.auth-brand-panel__inner {
  position: relative;
  z-index: 1;
  height: calc(100vh - 68px);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin: 0 auto;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.auth-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-500);
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.auth-logo > span:last-child {
  display: grid;
  line-height: 1.2;
}

.auth-logo strong {
  font-size: 16px;
}

.auth-logo small {
  color: rgba(255,255,255,.62);
}

.auth-brand-copy {
  margin: auto 0;
  max-width: 540px;
}

.auth-brand-copy .eyebrow {
  color: #f1aa68;
}

.auth-brand-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  margin: 14px 0 20px;
  letter-spacing: -.045em;
}

.auth-brand-copy p {
  max-width: 520px;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  line-height: 1.7;
}

.auth-brand-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.auth-content-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 28px;
}

.auth-content {
  width: min(100%, 470px);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 28px;
}

.auth-mobile-brand .auth-logo small {
  color: var(--text-faint);
}

.auth-card {
  width: 100%;
}

.auth-card__header {
  margin-bottom: 24px;
}

.auth-card__header h2 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.auth-card__header p {
  margin: 0;
  line-height: 1.65;
}

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

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row a,
.auth-card__footer a {
  color: var(--brand-600);
  font-weight: 700;
  font-size: 12px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.auth-check-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
}

.auth-check-row > input { flex-shrink: 0; }

.auth-submit {
  width: 100%;
  min-height: 44px;
}

.auth-card__footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-error-box,
.auth-message {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
}

.auth-error-box {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: color-mix(in srgb, var(--danger) 20%, var(--border));
}

.auth-message-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-message--success {
  color: var(--success);
  background: var(--success-bg);
}

.auth-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: 22px;
  font-weight: 800;
}

.auth-card--centered {
  text-align: center;
}

.auth-card--centered .auth-state-icon {
  margin-inline: auto;
}

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

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

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

  .auth-content-panel {
    min-height: 100vh;
    padding: 28px 18px;
  }
}

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

  .auth-card__header h2 {
    font-size: 27px;
  }
}
