.auth-main {
  max-width: 1450px;
  margin: auto;
  padding: 36px clamp(20px, 4vw, 58px) 48px;
  font-size: 1rem;
  line-height: 1.7;
}
.auth-main p {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.auth-main h1,
.auth-main h2,
.auth-main h3 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.auth-main a,
.dev-auth-nav a {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-main em {
  font-style: normal;
  color: var(--amber-light);
}
.auth-local {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 15px 20px;
  border: 1px solid #706042;
  border-radius: 12px;
  background: #29251f;
  margin-bottom: 36px;
  color: var(--amber-light);
  font-size: 0.875rem;
}
.auth-local span {
  color: #e0d3b6;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}
.auth-story h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.auth-lead {
  font-size: 1.125rem;
  max-width: 48ch;
  margin-bottom: 28px;
}
.auth-story figure {
  margin: 0 0 30px;
}
.auth-story img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 14px;
}
.auth-story figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 10px;
}
.auth-boundaries h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.auth-boundaries p {
  font-size: 0.9375rem;
  margin: 0 0 14px;
}
.auth-boundaries a {
  display: inline-block;
  min-height: 44px;
  padding-block: 9px;
}
.auth-panel {
  padding: 30px;
  background: var(--surface);
  border: 1px solid #48546f;
  border-radius: 16px;
  min-width: 0;
}
.auth-panel > h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}
.auth-panel-intro {
  font-size: 0.9375rem;
  margin-bottom: 26px;
}
.auth-form {
  display: flex;
  flex-direction: column;
}
.auth-form > label {
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 8px;
}
.auth-form > input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #71809d;
  border-radius: 9px;
  padding: 12px 14px;
  background: #0b1224;
  color: var(--cream);
  font: inherit;
  caret-color: var(--amber);
}
.auth-main .auth-hint {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 8px 0 22px;
}
.auth-main .button {
  font-size: 0.9375rem;
  white-space: normal;
  min-height: 48px;
  padding: 14px 22px;
  justify-content: center;
  max-width: 100%;
  text-align: center;
}
.auth-form .button {
  margin-top: 18px;
  width: 100%;
}
.auth-form .auth-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 16px;
  cursor: pointer;
  min-height: 44px;
}
.auth-check input {
  appearance: auto;
  accent-color: var(--amber);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 3px;
}
.auth-switch {
  font-size: 0.9375rem;
  margin-top: 24px;
}
.auth-limit {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 26px;
}
.auth-limit h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.auth-limit p,
.auth-main .auth-privacy {
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.auth-privacy {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-message {
  padding: 18px;
  background: #302332;
  border: 1px solid #d096b8;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.auth-message h2 {
  font-family: var(--sans);
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.auth-message p {
  color: #f1dbe9;
  margin: 0;
  font-size: 0.9375rem;
}
.auth-main .auth-success {
  color: var(--aqua);
}
.account-facts {
  margin: 26px 0;
}
.account-facts > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.account-facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.account-facts dd {
  margin: 0;
  font-size: 1rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.auth-main .auth-footnote {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 0.875rem;
}
.dev-auth-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #46516b;
  margin-bottom: 28px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.dev-auth-nav strong {
  color: var(--amber-light);
}
.dev-auth-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.auth-location {
  font-size: 0.875rem;
  color: var(--muted);
}
.auth-location strong {
  color: var(--cream);
}
.auth-page .side-link {
  font-size: 0.875rem;
  min-height: 44px;
  line-height: 1.4;
}
.auth-page .nav-label {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.auth-page .brand__word small {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  white-space: normal;
}
.auth-page .brand--sidebar {
  flex-wrap: wrap;
}
.auth-page .sidebar__care p,
.auth-page .sidebar__care a {
  font-size: 0.8125rem;
}
.auth-page .sidebar__care a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.auth-page .footer__links {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10em), 1fr));
}
.auth-page .footer__links > div,
.auth-page .footer__brand,
.auth-page .brand__word {
  min-width: 0;
  overflow-wrap: anywhere;
}
.auth-page .footer__links a {
  font-size: 0.875rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.auth-page .footer__links h3,
.auth-page .footer__brand p {
  font-size: 0.875rem;
}
.auth-page .footer__bottom {
  font-size: 0.75rem;
  line-height: 1.65;
}
.auth-page .icon-button {
  padding: 0;
}
.auth-page .cookie-banner p,
.auth-page .cookie-banner .button {
  font-size: 0.875rem;
  white-space: normal;
}
@media (max-width: 1190px) {
  .auth-layout {
    gap: 28px;
    grid-template-columns: 1fr 1.1fr;
  }
  .auth-panel {
    padding: 24px;
  }
  .auth-story h1 {
    font-size: 3rem;
  }
}
@media (max-width: 1023px) {
  .auth-location {
    display: none;
  }
  .auth-page .brand--mobile {
    margin-right: auto;
  }
}
@media (max-width: 767px) {
  .auth-main {
    padding: 26px 20px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .auth-local {
    margin-bottom: 28px;
    gap: 6px;
  }
  .auth-story figure {
    display: none;
  }
  .auth-boundaries {
    display: none;
  }
  .auth-story h1 {
    font-size: 2.8rem;
  }
  .auth-lead {
    margin-bottom: 0;
  }
  .auth-panel {
    padding: 24px 20px;
  }
  .auth-panel > h2 {
    font-size: 1.9rem;
  }
  .auth-page .cookie-banner {
    position: static;
    width: auto;
    margin: 16px;
  }
  .auth-page .cookie-banner__actions {
    flex-wrap: wrap;
  }
  .auth-page .disclosure {
    font-size: 0.75rem;
  }
  .auth-footnote {
    margin-top: 24px;
  }
  .dev-auth-nav {
    display: block;
  }
  .dev-auth-nav strong {
    display: block;
  }
  .dev-auth-nav a {
    display: flex;
  }
}

/* Keep email identities readable on narrow screens. */
.account-facts dd, .saved-owner { overflow-wrap: anywhere; min-width: 0; }
.auth-form > input { margin-bottom: 18px; }
.auth-message h3 { font-size: 1.1rem; margin: 0 0 8px; }
