:root {
  color-scheme: light;
  --auth-ink: #182b43;
  --auth-muted: #68798c;
  --auth-line: #e0e7f0;
  --auth-blue: #2466a8;
  --auth-bg: #f5f7fb;
}

body.auth-page,
body.app-page {
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-ink);
}

.auth-page {
  padding: 1.25rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(480px, 1.08fr);
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 2.5rem));
  overflow: hidden;
  margin: auto;
  border: 1px solid #e7edf5;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 75px rgb(27 52 82 / 9%);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  color: var(--auth-ink);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--auth-blue);
}

.brand-mark {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 0.68rem;
  background: #eaf3fc;
  color: var(--auth-blue);
}

.brand-mark svg {
  width: 1.6rem;
  height: 1.6rem;
}

.auth-content {
  width: min(100%, 390px);
  margin: auto;
  padding: 2rem 0;
}

.eyebrow,
.art-kicker {
  margin: 0 0 0.65rem;
  color: var(--auth-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.auth-content h1 {
  margin-bottom: 0.5rem;
  color: var(--auth-ink);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.045em;
}

.auth-lede {
  margin: 0 0 1.75rem;
  color: var(--auth-muted);
}

.auth-content .form-label {
  color: #31475f;
  font-weight: 600;
}

.auth-content .form-control {
  border-color: var(--auth-line);
}

.auth-content .form-control:focus {
  border-color: #7eabd7;
  box-shadow: 0 0 0 0.2rem rgb(36 102 168 / 12%);
}

.passkey-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-color: #245f99;
  background: #245f99;
  font-weight: 600;
}

.passkey-button .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.passkey-button:disabled,
.btn:disabled {
  cursor: wait;
}

.passkey-hint {
  margin: 0.65rem 0 0;
  color: var(--auth-muted);
  font-size: 0.82rem;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
  color: #8997a7;
  font-size: 0.77rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--auth-line);
  content: "";
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
  color: #738195;
  font-size: 0.78rem;
}

.privacy-note svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.auth-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  color: #8a98a8;
  font-size: 0.78rem;
}

.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(155deg, #f0f6fd 0%, #e5f0fb 100%);
}

.art-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
  padding-top: 1.2rem;
}

.art-copy h2 {
  margin: 0 0 0.8rem;
  color: #1b3655;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.art-copy p {
  max-width: 360px;
  margin: 0;
  color: #647a92;
}

.neighborhood-art {
  display: block;
  width: 100%;
  max-width: 590px;
  align-self: center;
  margin: 0.4rem auto 0;
}

.art-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 75%);
  color: #6b7d90;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgb(45 75 111 / 7%);
}

.art-caption strong {
  color: #2b435e;
  font-size: 0.84rem;
}

.caption-mark,
.welcome-check {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e1f3e8;
  color: #2c8751;
  font-weight: 700;
}

.enrollment-panel {
  padding: 1.4rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.9rem;
  background: #fbfdff;
}

.enrollment-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 0.8rem;
  background: #eaf3fc;
  color: var(--auth-blue);
}

.enrollment-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.placeholder-card {
  border-color: #e7edf5;
  box-shadow: 0 24px 75px rgb(27 52 82 / 8%);
}

.welcome-check {
  width: 3rem;
  height: 3rem;
  margin-top: 0.25rem;
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  }

  .auth-art {
    padding: 2rem;
  }
}

@media (max-width: 720px) {
  .auth-page {
    display: block;
    padding: 0;
    background: #fff;
  }

  .auth-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 1.25rem;
  }

  .auth-content {
    padding: 3.5rem 0 2rem;
  }

  .auth-art {
    display: none;
  }

  .auth-footer {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
