.auth-body {
  --accent: #83500f;
  --auth-accent-ink: #fff;
  --auth-blue: #2563eb;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(37, 99, 235, .13), transparent 31rem),
    radial-gradient(circle at 92% 82%, rgba(22, 163, 74, .09), transparent 27rem),
    var(--bg);
}
.auth-body .wrap { max-width: 1120px; padding-top: 24px; }
.auth-body header.top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 18px;
}
.auth-body .brand { font-size: 1.2rem; letter-spacing: -.03em; }
.auth-body a:focus-visible,
.auth-body button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 3px;
}
.auth-icon {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(400px, .72fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
  min-height: 670px;
  padding: 72px 0 88px;
}
.auth-story { max-width: 540px; }
.auth-story-mark {
  position: relative;
  display: grid;
  width: 118px;
  height: 132px;
  place-items: center;
  margin-bottom: 29px;
  color: var(--ok);
}
.auth-story-mark > span {
  position: absolute;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--ok-bg);
}
.auth-story-shield { position: relative; width: 116px; height: 116px; stroke-width: 1.4; }
.auth-story-check {
  position: absolute;
  right: 1px;
  bottom: 8px;
  width: 33px;
  height: 33px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--bg);
  stroke-width: 2.2;
}
.auth-eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-story h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -.06em;
  line-height: 1;
}
.auth-story > p:not(.auth-eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}
.auth-story ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .76rem;
  list-style: none;
}
.auth-story li { display: flex; align-items: center; gap: 8px; }
.auth-story li .auth-icon { width: .94rem; height: .94rem; color: var(--ok); }

.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 28px 78px rgba(29, 43, 64, .13);
}
.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--auth-blue), var(--ok));
  content: "";
}
.auth-card-heading { display: flex; align-items: center; gap: 13px; }
.auth-card-heading .auth-eyebrow { margin-bottom: 3px; }
.auth-card-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }
.auth-lock {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--info-bg);
  color: var(--accent);
}
.auth-lock .auth-icon { width: 1.35rem; height: 1.35rem; }
.auth-intro { margin: 19px 0 25px; color: var(--muted); font-size: .84rem; }
.auth-provider-list { display: grid; gap: 10px; }
.auth-provider-form { margin: 0; }
.auth-provider-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--accent);
  color: var(--auth-accent-ink);
  padding: 13px 16px;
  font: inherit;
  font-size: .87rem;
  font-weight: 800;
  cursor: pointer;
  transition: box-shadow .16s ease, transform .16s ease;
}
.auth-provider-button:hover { box-shadow: 0 11px 28px rgba(29, 43, 64, .18); transform: translateY(-1px); }
.auth-provider-button .auth-arrow { margin-left: auto; }
.auth-unavailable {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  border-radius: 13px;
  background: var(--warn-bg);
  color: var(--warn);
  padding: 14px;
  font-size: .78rem;
}
.auth-unavailable div { display: grid; gap: 2px; }
.auth-unavailable span { color: var(--muted); }
.auth-messages { display: grid; gap: 8px; margin: 0 0 16px; }
.auth-message {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--info-bg);
  padding: 10px 12px;
  color: var(--ink);
  font-size: .76rem;
}
.auth-message.error { border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); background: var(--crit-bg); color: var(--crit); }
.auth-message.success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: var(--ok-bg); color: var(--ok); }
.auth-footnote {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.55;
  text-align: center;
}

:root[data-theme="dark"] .auth-body { --auth-accent-ink: #10151c; --auth-blue: #8ab4ff; }

@media (max-width: 840px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; gap: 42px; padding-top: 58px; }
  .auth-story { max-width: 680px; }
  .auth-story-mark { width: 92px; height: 101px; margin-bottom: 22px; }
  .auth-story-mark > span { width: 74px; height: 74px; }
  .auth-story-shield { width: 90px; height: 90px; }
  .auth-story-check { width: 28px; height: 28px; }
  .auth-card { width: min(520px, 100%); }
}

@media (max-width: 520px) {
  .auth-body .wrap { padding-inline: 16px; }
  .auth-body header.top .meta { display: none; }
  .auth-shell { padding: 48px 0 70px; }
  .auth-story h1 { font-size: clamp(2.25rem, 13vw, 3.25rem); }
  .auth-story > p:not(.auth-eyebrow) { font-size: .87rem; }
  .auth-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-provider-button { transition: none; }
  .auth-provider-button:hover { transform: none; }
}
