:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #130d10;
  color: #f5f0e6;
  font-synthesis: none;
  --cream: #f5f0e6;
  --surface: #fffdf8;
  --ink: #211a18;
  --muted: #756b63;
  --burgundy: #6e1025;
  --burgundy-deep: #3b0815;
  --champagne: #c3a46b;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(110, 16, 37, 0.55), transparent 44%),
    linear-gradient(145deg, #130d10, #211318 60%, #130d10);
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.auth-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.auth-glow-top {
  width: min(82vw, 720px);
  aspect-ratio: 1;
  top: -48%;
  right: -14%;
  background: radial-gradient(circle, rgba(138, 29, 57, 0.42), transparent 68%);
}

.auth-glow-bottom {
  width: min(72vw, 600px);
  aspect-ratio: 1;
  bottom: -52%;
  left: -16%;
  background: radial-gradient(circle, rgba(195, 164, 107, 0.22), transparent 68%);
}

main {
  width: min(100%, 520px);
  padding: clamp(28px, 7vw, 52px);
  text-align: center;
  border: 1px solid rgba(195, 164, 107, 0.34);
  border-radius: 28px;
  background: rgba(30, 20, 24, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card-success::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.logo {
  width: 104px;
  height: 104px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.brand-lockup .logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.success-mark {
  width: 74px;
  height: 74px;
  margin: 28px auto 4px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(208, 175, 112, 0.62);
  border-radius: 50%;
  color: #f2d89a;
  background: linear-gradient(145deg, rgba(138, 29, 57, 0.58), rgba(110, 16, 37, 0.2));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24), inset 0 0 0 7px rgba(195, 164, 107, 0.08);
}

.success-mark svg {
  width: 37px;
  height: 37px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 22px 0 8px;
  color: #c3a46b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

p {
  margin: 18px auto 0;
  color: #d8cfd1;
  line-height: 1.65;
}

.lead {
  max-width: 390px;
  font-size: 1.02rem;
}

.button {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 15px 20px;
  border: 1px solid #d8b977;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2d89a, #c3a46b);
  color: #2a1118;
  font-weight: 800;
  text-decoration: none;
}

.auth-card-success .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #2a1118;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-card-success .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.button[aria-disabled="true"] {
  cursor: default;
}

.button[aria-disabled="true"]:hover {
  transform: none;
}

.button:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid #f5f0e6;
  outline-offset: 4px;
}

.footer-link {
  display: inline-block;
  margin-top: 22px;
  color: #d8cfd1;
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  font-size: 0.82rem;
  color: #b9aeb1;
}

.security-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--champagne);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-color-scheme: light) {
  :root { background: #f5f0e6; color: #130d10; }
  body { background: radial-gradient(circle at 50% 0%, #ead9dc, #f5f0e6 55%); }
  main { background: rgba(255, 253, 248, 0.96); box-shadow: 0 28px 70px rgba(67, 37, 45, 0.14); }
  p, .footer-link { color: #51454a; }
  .security-note { color: #71656a; }
  .auth-glow-top { background: radial-gradient(circle, rgba(110, 16, 37, 0.16), transparent 68%); }
  .auth-glow-bottom { background: radial-gradient(circle, rgba(195, 164, 107, 0.24), transparent 68%); }
  .success-mark {
    color: var(--burgundy);
    background: linear-gradient(145deg, rgba(110, 16, 37, 0.11), rgba(195, 164, 107, 0.16));
    box-shadow: 0 16px 38px rgba(67, 37, 45, 0.14), inset 0 0 0 7px rgba(195, 164, 107, 0.09);
  }
  .auth-card-success .button { color: #2a1118; box-shadow: 0 12px 28px rgba(67, 37, 45, 0.16); }
}

@media (max-width: 520px) {
  body { padding: 16px; }
  .auth-card { border-radius: 24px; }
  .brand-lockup .logo { width: 50px; height: 50px; }
  .success-mark { width: 68px; height: 68px; margin-top: 24px; }
  .security-note { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
