/* Shared page layout and cross-page transitions */
.nav-auth { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.nav-login { color: #5e6470; font-size: 12px; font-weight: 650; transition: color 180ms ease; }
.nav-login:hover { color: var(--ink); }
.main-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--ink); }
.page-main { min-height: calc(100vh - 190px); animation: page-enter 420ms var(--ease-out) both; }
.page-leaving .page-main { opacity: 0; transform: translateY(-8px); transition: opacity 150ms ease, transform 150ms ease; }
.auth-layout { min-height: min(760px, calc(100vh - 170px)); display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr); align-items: center; gap: clamp(52px, 9vw, 130px); padding-block: 76px 88px; }
.auth-aside { max-width: 480px; }
.auth-back { display: inline-flex; margin-bottom: clamp(60px, 10vh, 108px); color: #787e8b; font-size: 12px; font-weight: 600; transition: color 180ms ease; }
.auth-back:hover { color: var(--ink); }
.auth-aside .section-kicker { margin-bottom: 14px; }
.auth-aside h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 5.2vw, 65px); font-weight: 700; line-height: 1.2; letter-spacing: -.075em; }
.auth-aside h1 span { color: #8d88be; }
.auth-aside > p:not(.section-kicker) { max-width: 370px; margin: 20px 0 0; color: #7f8490; font-size: 14px; line-height: 1.85; word-break: keep-all; }
.auth-note { display: flex; align-items: center; gap: 11px; margin-top: 32px; color: #8a8f9b; font-size: 11px; }
.auth-card { padding: clamp(28px, 4vw, 43px); overflow: hidden; border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 20px 58px rgba(39,43,60,.075), inset 0 1px 0 #fff; }
.auth-card::after { border-radius: inherit; }
.auth-card-heading { position: relative; z-index: 1; margin-bottom: 28px; }
.auth-card-heading .section-kicker { margin-bottom: 9px; }
.auth-card-heading h2 { margin: 0; color: var(--ink); font-size: 31px; letter-spacing: -.06em; }
.auth-card-heading > p:last-child { margin: 9px 0 0; color: #838895; font-size: 12px; }
.auth-form { position: relative; z-index: 1; }
.auth-form .field-label { margin: 16px 0 7px; }
.auth-form .field-control { min-height: 48px; padding-inline: 14px; border-radius: 13px; font-size: 12px; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 22px; color: #838895; font-size: 10px; }
.auth-form-row > a, .auth-switch a { color: #706aa9; font-weight: 700; }
.auth-form-row > a:hover, .auth-switch a:hover { color: #4f4a8d; text-decoration: underline; text-underline-offset: 3px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: #747986; font-size: 10px; cursor: pointer; }
.auth-check input { width: 15px; height: 15px; accent-color: #7972bd; }
.auth-terms { margin: 17px 0 20px; }
.auth-submit { width: 100%; }
.auth-status { min-height: 32px; margin: 12px 0 0; color: #8c919d; font-size: 9px; line-height: 1.6; }
.auth-switch { position: relative; z-index: 1; margin: 20px 0 0; color: #9297a2; text-align: center; font-size: 10px; }

@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 980px) {
  .nav-glass { gap: 18px; }
  .nav-auth { gap: 12px; margin-left: 0; }
  .nav-login { font-size: 11px; }
  .nav-auth .nav-cta { padding-inline: 10px; font-size: 10px; }
  .auth-layout { grid-template-columns: minmax(0, .85fr) minmax(340px, .9fr); gap: 5%; }
  .auth-aside h1 { font-size: clamp(40px, 5vw, 53px); }
}
@media (max-width: 760px) {
  .nav-auth { display: none; }
  .page-main { min-height: calc(100vh - 160px); }
  .auth-layout { min-height: 0; grid-template-columns: 1fr; gap: 32px; padding-block: 53px 64px; }
  .auth-aside { max-width: 560px; }
  .auth-back { margin-bottom: 33px; }
  .auth-aside h1 { font-size: clamp(38px, 9vw, 54px); }
  .auth-aside > p:not(.section-kicker) { max-width: 440px; margin-top: 14px; font-size: 12px; }
  .auth-note { margin-top: 18px; }
  .auth-card { width: min(100%, 540px); margin-inline: auto; padding: 25px 22px; border-radius: 20px; }
}
@media (max-width: 420px) {
  .auth-layout { padding-top: 42px; }
  .auth-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-main { animation: none; }
  .page-leaving .page-main { opacity: 1; transform: none; transition: none; }
}
