@import url("https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap");

:root {
  font-family: "Switzer", "Helvetica Neue", Arial, sans-serif;
  color: #11110f;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.material-symbols-rounded { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20; }

.auth-shell {
  --spotlight-width: min(52vw, calc(79.63svh - 44.59px));
  display: grid;
  grid-template-columns: minmax(440px, 1fr) var(--spotlight-width);
  height: 100svh;
  min-height: 0;
  padding: 28px;
  gap: 28px;
  overflow: hidden;
}

.auth-panel { position: relative; height: calc(100svh - 56px); min-height: 0; }
.auth-logo { position: absolute; top: 4px; left: 16px; font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -1.1px; }
.auth-logo-confirm { left: auto; right: 16px; color: #aaa9a4; font-size: 17px; font-weight: 500; letter-spacing: -.5px; }
.auth-back { position: absolute; top: 5px; left: 10px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 550; }
.auth-back span { width: 20px; height: 20px; font-size: 20px; line-height: 20px; }

.auth-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 520px);
  padding: 28px;
  transform: translate(-50%, -50%);
}

.auth-heading { margin-bottom: 56px; text-align: center; }
.auth-heading h1 { margin: 0; font-size: clamp(30px, 2.4vw, 42px); font-weight: 500; letter-spacing: -1.5px; line-height: 1.05; }
.auth-heading p { max-width: 440px; margin: 18px auto 0; color: #92928d; font-size: 17px; line-height: 1.48; }
.auth-heading p strong { color: #111; font-weight: 550; }

.auth-form { display: grid; gap: 9px; }
.auth-form label { font-size: 14px; font-weight: 500; }
.auth-input-row { position: relative; }
.auth-input-row input { width: 100%; height: 50px; padding: 0 56px 0 15px; border: 1px solid #dadad6; border-radius: 5px; outline: 0; background: #fafaf9; font-size: 15px; transition: border-color 160ms ease, background-color 160ms ease; }
.auth-input-row input:focus { border-color: #111; background: #fff; }
.auth-input-row button { position: absolute; top: 8px; right: 8px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #111; color: #fff; font-size: 19px; cursor: pointer; }
.auth-input-row button span { font-size: 19px; }

.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 27px 0; color: #8d8d89; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #e5e5e1; }
.google-button, .primary-auth-button, .secondary-auth-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.google-button { gap: 12px; border: 0; background: #050505; color: #fff; cursor: pointer; }
.google-button span { font-family: Arial, sans-serif; font-size: 20px; font-weight: 700; }
.auth-footnote { margin: 18px 0 0; color: #9a9a95; font-size: 13px; text-align: center; }
.auth-footnote a { color:#11110f; font-weight:550; text-decoration:underline; text-decoration-color:#c8c8c3; text-underline-offset:3px; transition:text-decoration-color 160ms ease; }
.auth-footnote a:hover,.auth-footnote a:focus-visible { text-decoration-color:#11110f; }

.auth-spotlight { position: relative; height: calc(100svh - 56px); min-height: 0; overflow: hidden; border-radius: 6px; background: #f0f0ed; }
.auth-spotlight::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 45% 0 0;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 12%, rgba(0,0,0,.44) 48%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 12%, rgba(0,0,0,.44) 48%, #000 100%);
  pointer-events: none;
}
.auth-spotlight::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.035) 18%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}
.auth-spotlight > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 1; filter: blur(0); transform: scale(1); transition: opacity 720ms cubic-bezier(.16,1,.3,1), filter 720ms cubic-bezier(.16,1,.3,1), transform 820ms cubic-bezier(.16,1,.3,1); }
.auth-spotlight-content { position: absolute; right: 42px; bottom: 42px; left: 42px; z-index: 3; color: #fff; opacity: 1; filter: blur(0); transform: translateY(0); transition: opacity 660ms cubic-bezier(.16,1,.3,1), filter 660ms cubic-bezier(.16,1,.3,1), transform 720ms cubic-bezier(.16,1,.3,1); }
.auth-spotlight.is-changing > img { opacity: .64; filter: blur(4px); transform: scale(1.004); }
.auth-spotlight.is-changing .auth-spotlight-content { opacity: .48; filter: blur(2px); transform: translateY(1px); }
.spotlight-label { margin: 0 0 8px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.2; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.spotlight-story {
  max-width: 690px;
  max-height: 3.6em;
  margin: 0 0 42px;
  overflow: hidden;
  color: rgba(255,255,255,.56);
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.35px;
  text-shadow: 0 1px 14px rgba(0,0,0,.2);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.86) 42%, rgba(0,0,0,.34) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.86) 42%, rgba(0,0,0,.34) 78%, transparent 100%);
}
.spotlight-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.spotlight-footer h2 { margin: 0; font-size: clamp(30px, 3vw, 52px); font-weight: 400; letter-spacing: -1.8px; line-height: 1; }
.spotlight-footer p { display: flex; gap: 8px; margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }
.spotlight-footer i { font-style: normal; }
.spotlight-footer a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 10px 0; font-size: 14px; font-weight: 500; }
.spotlight-footer a span { width: 16px; height: 16px; font-size: 16px; line-height: 16px; }

.confirm-content { text-align: center; }
.confirm-content .auth-heading { margin-bottom: 42px; }
.confirm-content .auth-heading p { margin-inline: auto; }
.confirm-actions { display: grid; gap: 12px; }
.primary-auth-button { border: 1px solid #111; background: #111; color: #fff; cursor: pointer; }
.secondary-auth-button { border: 1px solid #d9d9d5; background: #fff; color: #111; }

@media (max-width: 1100px) {
  .auth-shell {
    --spotlight-width: min(48vw, calc(79.63svh - 28.67px));
    grid-template-columns: minmax(390px, 1fr) var(--spotlight-width);
    padding: 18px;
    gap: 18px;
  }
  .auth-panel, .auth-spotlight { height: calc(100svh - 36px); min-height: 0; }
  .auth-spotlight-content { right: 28px; bottom: 28px; left: 28px; }
  .spotlight-story { margin-bottom: 30px; font-size:clamp(16px,1.65vw,19px); }
}

@media (max-width: 760px) {
  .auth-shell { display: block; height: auto; min-height: 100svh; padding: 18px; overflow: visible; }
  .auth-panel { height: auto; min-height: calc(100svh - 36px); }
  .auth-spotlight { display: none; }
  .auth-content { width: 100%; padding: 22px 12px; }
  .auth-heading { margin-bottom: 42px; }
  .auth-logo { left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spotlight > img,
  .auth-spotlight-content { transition: none; }
}
