.auth-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: #eeeae3;
}

.auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template: minmax(0, 1fr) auto minmax(0, 1fr) / minmax(0, 1fr);
  color: #fff;
  background:
    radial-gradient(ellipse at 75% 92%, #551d28 0%, transparent 57%),
    radial-gradient(ellipse at 7% 0%, #302e32 0%, transparent 52%),
    #141316;
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.3vw, 34px);
  border: 1px solid #fff2e125;
  pointer-events: none;
}

.auth-lockup {
  grid-row: 2;
  padding-inline: clamp(36px, 7.5vw, 120px);
}
.auth-optics {
  grid-row: 3;
  position: relative;
  overflow: hidden;
  margin-top: clamp(14px, 2.5vh, 24px);
  mask-image: linear-gradient(transparent, #000 15%);
  pointer-events: none;
}
.auth-optics .optical-rings {
  left: 83%;
  top: 80%;
  width: min(76%, 710px);
}

.auth-brand .auth-eyebrow {
  margin: 0 0 22px;
  color: #e2c8b8;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .29em;
  text-transform: uppercase;
}
.auth-eyebrow::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 1px;
  margin: 0 13px .25em 0;
  background: #d74858;
}
.auth-brand .wordmark { width: min(100%, 435px); }
.auth-brand .brand-sub {
  color: #e2c8b8;
  font-size: clamp(.68rem, 1.2vw, .95rem);
  letter-spacing: .38em;
  margin-top: 15px;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 76px);
  background: radial-gradient(ellipse at 80% 8%, #faf7f1, transparent 75%), #ebe6dc;
}
.auth-form {
  width: 100%;
  max-width: 490px;
  padding: clamp(25px, 4vw, 60px);
  border-radius: 20px;
  background: #fffcf7;
  border: 1px solid #ded5c9;
  box-shadow: 0 26px 65px #49342314, 0 4px 12px #4934230a;
}
.auth-form h1 {
  margin-bottom: 9px;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  letter-spacing: -.055em;
}
.auth-form .theme-picker {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
[data-theme="dark"] .auth-body { background: var(--paper); }
[data-theme="dark"] .auth-main {
  background: radial-gradient(ellipse at 80% 8%, #2a222a, transparent 75%), var(--paper);
}
[data-theme="dark"] .auth-form {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 26px 65px #0004;
}
.auth-form form:not(.sign-out) { margin-top: 24px; }
.auth-form .field { margin-bottom: 19px; }
.auth-form .secondary, .sign-out { margin-top: 9px; }
.auth-form input:not([type="hidden"]) { min-height: 49px; }
.auth-form input:is(:autofill, :-webkit-autofill) {
  box-shadow: 0 0 0 1000px var(--well) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.auth-form input:focus-visible {
  border-color: var(--focus);
  outline-width: 2px;
  outline-offset: 2px;
}
.auth-form .field-error input { border-color: var(--error-border); }
.auth-form .primary { width: 100%; min-height: 49px; }

@media (max-width: 760px) {
  .auth-body { grid-template: auto 1fr / minmax(0, 1fr); }
  .auth-brand {
    min-height: 208px;
    grid-template-rows: minmax(30px, .65fr) auto minmax(68px, 1fr);
  }
  .auth-lockup { padding-inline: clamp(27px, 7.5vw, 36px); }
  .auth-optics { margin-top: 8px; }
  .auth-optics .optical-rings {
    left: 85%;
    top: 96%;
    width: min(60%, 280px);
  }
  .auth-brand .auth-eyebrow { margin-bottom: 13px; font-size: .64rem; }
  .auth-brand .wordmark { width: min(100%, 250px); }
  .auth-brand .brand-sub { margin-top: 10px; }
  .auth-main { align-items: start; padding: 24px 16px 36px; }
}
