/* Sign-in presentation; account and provider behavior stays in auth.js. */
.auth-page .auth-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: stretch; width: 100%; max-width: none; min-width: 0; min-height: 0; margin: 0; padding: 0; }
.auth-page .auth-brand-panel { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 30px var(--page-gutter); overflow: hidden; border: 0; border-radius: 0; background: radial-gradient(ellipse at 100% 0, #315483 0, transparent 60%), #172b43; color: #fff; isolation: isolate; }
.auth-page .auth-brand-copy { position: relative; min-width: 0; }
.auth-page .auth-brand-copy h1 { color: #fff; font-size: clamp(36px, 7.5vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.auth-page .auth-brand-copy h1 em { color: #a9c4ff; font-style: normal; }
.auth-page .auth-panel { align-self: center; justify-self: center; width: min(480px, calc(100% - var(--page-gutter) * 2)); max-width: 100%; min-width: 0; margin: 32px auto 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-page .auth-panel .auth-form-eyebrow { margin-bottom: 12px; font-size: 9px; }
.auth-page .auth-panel > h2 { margin-bottom: 12px; font-size: clamp(27px, 4vw, 32px); line-height: 1.15; font-weight: 550; }
.auth-page .auth-panel > h2 + p { margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-page .auth-panel .field input,
.auth-page .auth-panel .field select { min-width: 0; width: 100%; min-height: 48px; border-color: #d1dbe5; }
.auth-page .auth-panel .field-row { min-width: 0; }
.auth-page .auth-panel .inline-label { align-items: start; }
.auth-page .auth-panel .inline-label > span { min-width: 0; }
.auth-page .auth-panel .inline-label input { flex-shrink: 0; margin-top: 4px; }
.auth-page .auth-panel form,
.auth-page .auth-panel .oauth-provider-option,
.auth-page .auth-panel .oauth-button > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.auth-page .auth-panel .hint { line-height: 1.8; }
.auth-page .auth-panel .oauth-button { min-height: 49px; }
.auth-page .auth-panel .auth-switch { padding-top: 20px; border-top: 1px solid #e7ebf0; }
.auth-page .auth-panel .auth-switch .text-button { width: auto; min-height: 44px; margin-left: 3px; }
.auth-page .auth-panel > .hint:last-child { margin-bottom: 0; color: #647386; font-size: 11px; }
@media (min-width: 640px) {
  .auth-page .auth-brand-panel { padding: 40px var(--page-gutter); }
  .auth-page .auth-panel { margin-block: 44px 64px; }
}
@media (min-width: 1024px) {
  .auth-page .auth-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height)); }
  .auth-page .auth-brand-panel { align-self: stretch; justify-content: space-between; gap: 24px; padding: clamp(32px, 4vh, 56px) clamp(32px, 4.5vw, 80px); }
  .auth-page .auth-brand-copy { margin-top: 0; }
  .auth-page .auth-brand-copy h1 { font-size: clamp(48px, 4.3vw, 64px); }
  .auth-page .auth-panel { width: min(480px, calc(100% - 80px)); margin-block: 48px; }
}
@media (max-width: 639px) {
  .auth-page .auth-panel .field input,
  .auth-page .auth-panel .field select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page .button { transition: none; } }

/* Registration keeps the same split while giving the form a shorter rhythm. */
.auth-page.auth-registration .auth-panel { margin-block: 16px; }
.auth-page.auth-registration .auth-panel > h2 { margin-bottom: 6px; font-size: 28px; }
.auth-page.auth-registration .auth-panel > h2 + p { margin-bottom: 10px; font-size: 12px; line-height: 1.6; }
.auth-page.auth-registration .field { gap: 4px; margin-bottom: 6px; }
.auth-page.auth-registration .field label { font-size: 11px; line-height: 1.5; }
.auth-page.auth-registration .field input,
.auth-page.auth-registration .field select { min-height: 44px; padding: 8px 12px; font-size: 14px; line-height: 1.5; }
.auth-page.auth-registration .field small { font-size: 10px; line-height: 1.5; }
.auth-page.auth-registration .auth-name-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.auth-page.auth-registration .auth-consent { margin-block: 4px 8px; }
.auth-page.auth-registration .auth-consent .inline-label { min-height: 32px; align-items: center; margin: 0; font-size: 11px; line-height: 1.6; }
.auth-page.auth-registration .auth-consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.auth-page.auth-registration .auth-panel .button { min-height: 44px; padding-block: 9px; }
.auth-page.auth-registration .oauth-divider { gap: 10px; margin: 8px 0 6px; font-size: 10px; line-height: 1.5; }
.auth-page.auth-registration .oauth-provider-buttons { gap: 8px; }
.auth-page.auth-registration .oauth-provider-option > .hint { margin-top: 6px; font-size: 11px; line-height: 1.6; }
.auth-page.auth-registration .auth-switch { margin-block: 4px 0; padding-top: 0; border: 0; font-size: 11px; }
.auth-page.auth-registration .auth-switch .text-button { padding-block: 7px; font-size: 11px; }
.auth-page.auth-registration .auth-panel > .auth-privacy-note { margin: 6px 0 0; font-size: 11px; line-height: 1.5; }
.auth-page .auth-privacy-note > a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.auth-page .auth-approval-note { margin-block: 0 12px; }
@media (min-width: 360px) {
  .auth-page.auth-registration .auth-name-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1024px) {
  .auth-page.auth-registration .auth-panel { margin-block: 6px; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  .auth-page.auth-registration .auth-brand-panel { gap: 16px; padding-block: 24px; }
  .auth-page.auth-registration .auth-brand-copy h1 { font-size: 48px; }
}
@media (max-width: 1023px) {
  .auth-page.auth-registration .auth-brand-panel { padding-block: 12px; }
  .auth-page.auth-registration .auth-brand-copy h1 { font-size: 24px; line-height: 1.1; }
}
@media (max-width: 639px) {
  .auth-page.auth-registration .field input,
  .auth-page.auth-registration .field select { font-size: 16px; }
}

/* A focused welcome panel on desktop; the form takes priority on mobile. */
.auth-page .auth-brand-panel { display: none; }
.auth-page .auth-panel > .auth-privacy-note,
.auth-page.auth-registration .auth-panel > .auth-privacy-note { margin-top: 20px; padding: 16px; border: 1px solid #cbd6e3; border-radius: 10px; background: #f0f4fa; color: #263b51; font-size: 14px; line-height: 1.65; }
.auth-page .auth-privacy-note > a { color: #2149ab; font-weight: 600; }
.auth-page.auth-registration .auth-consent .inline-label { min-height: 44px; font-size: 13px; color: #263b51; }
.auth-page .auth-panel #email[aria-invalid="true"] { border-color: #b24439; }
.auth-page.auth-registration .field #signup-email-error { color: #9b352b; font-size: 12px; }
.auth-page .signup-email-dialog { max-height: calc(100dvh - 32px); padding: clamp(20px, 5vw, 30px); }
.auth-page .signup-email-dialog h2 { margin-bottom: 12px; }
.auth-page .signup-email-dialog .button { margin-top: 20px; }
@media (min-width: 1024px) {
  .auth-page .auth-brand-panel { display: flex; justify-content: center; align-items: center; }
  .auth-page .auth-brand-copy { margin: 0; text-align: center; }
  .auth-page .auth-brand-copy h1,
  .auth-page.auth-registration .auth-brand-copy h1 { margin: 0; font-size: clamp(46px, 4.7vw, 76px); font-weight: 650; line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
}
