/* Keep the illustration in normal flow: never crop it or cover it with the form. */
.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--guud-ink, #1c1c1c);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  overflow-x: visible;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; transition: none; }
.auth-header {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.auth-logo { display: block; width: 220px; max-width: 100%; height: auto; }
.auth-product { font-size: 13px; letter-spacing: .16em; font-weight: 600; color: #626873; white-space: nowrap; }
.auth-layout {
  flex: 1;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 24px 48px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.auth-intro { min-width: 0; }
.auth-intro-copy { max-width: 530px; }
.auth-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: #626873; margin-bottom: 14px; }
.auth-intro h1 { font-size: clamp(28px, 3vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -.035em; }
.auth-tagline { margin-top: 14px; color: #626873; line-height: 1.6; }
.auth-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 40px auto 0;
}
.auth-map-art { position: relative; width: 100%; aspect-ratio: 2 / 1; }
.auth-map-art > img { display: block; width: 100%; height: auto; }
.auth-map-routes { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.auth-map figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; color: var(--appearance-muted, #626873); font-size: 11px; line-height: 1.6; }
.auth-map-key { width: 11px; height: 11px; flex-shrink: 0; border: 2px solid #555e64; border-radius: 50%; background: #f0b323; }
.auth-card {
  min-width: 0;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 36px;
  border: 1px solid #e8e6df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(36, 42, 50, .06);
}
.auth-card h2 { font-size: 28px; line-height: 1.25; font-weight: 600; }
.auth-instructions { color: #626873; line-height: 1.6; margin-top: 12px; }
.auth-form { display: grid; gap: 20px; margin-top: 28px; padding: 0; }
.auth-service-page .auth-form > p { display: grid; gap: 8px; margin: 0; }
.auth-service-page .auth-form label { font-size: 14px; font-weight: 600; }
.auth-service-page .auth-form input:where(:not([type="hidden"])) { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px; margin: 0; border: 1px solid #aeb3bb; border-radius: 10px; background: #fff; color: var(--guud-ink, #1c1c1c); font: inherit; }
.auth-service-page .auth-form input:where(:not([type="hidden"])):focus { border-color: var(--guud-ink, #1c1c1c); box-shadow: 0 0 0 3px #f0b32340; }
.auth-service-page .auth-form input[aria-invalid="true"] { border-color: #b13e3e; }
.auth-service-page .auth-form .errorlist { margin: 0; padding-left: 18px; color: #a52222; font-size: 13px; line-height: 1.5; }
.auth-service-page .auth-form button:not(.auth-submit) { width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid var(--appearance-line, #d9e0e4); border-radius: 10px; background: var(--appearance-page, #fff); color: var(--appearance-ink, #1c252b); font: inherit; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.auth-service-page .auth-form button:not(.auth-submit):hover:not(:disabled) { background: var(--appearance-surface, #f5f6f7); }
.auth-service-page .auth-form button:not(.auth-submit):disabled { color: var(--appearance-muted, #58656e); cursor: not-allowed; }
.auth-field { display: grid; gap: 8px; min-width: 0; }
.auth-field label { font-size: 14px; font-weight: 600; }
.auth-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #aeb3bb;
  border-radius: 10px;
  background: #fff;
  color: var(--guud-ink, #1c1c1c);
  font: inherit;
}
.auth-page :is(a, button, input):focus-visible { outline: 3px solid var(--guud-ink, #1c1c1c); outline-offset: 4px; }
.auth-field input:focus { border-color: var(--guud-ink, #1c1c1c); box-shadow: 0 0 0 3px #f0b32340; }
.auth-page a { color: var(--guud-ink, #1c1c1c); text-underline-offset: 4px; }
.auth-page a:hover { text-decoration: underline; }
.auth-recovery { text-decoration: underline; justify-self: end; font-size: 13px; line-height: 1.6; text-align: right; }
.auth-submit {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--guud-yellow, #f0b323);
  border-radius: 10px;
  background: var(--guud-yellow, #f0b323);
  color: var(--guud-ink, #1c1c1c);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.auth-submit:hover:not(:disabled) { background: var(--guud-yellow-hover, #ecad19); border-color: var(--guud-yellow-hover, #ecad19); }
.auth-submit:disabled { background: #eceeef; border-color: #e0e2e4; color: #6f747a; cursor: not-allowed; }
.auth-register { font-size: 13px; line-height: 1.8; text-align: center; color: #626873; }
.auth-register a { font-weight: 600; }
.auth-messages > div:not(:empty) { padding: 12px; margin-top: 16px; border-radius: 8px; background: #fff9d6; line-height: 1.5; font-size: 14px; }
.auth-messages ul { padding-left: 18px; }
.auth-page .footer {
  position: static;
  display: block;
  height: auto;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid #eeede9;
  color: #626873;
  font-size: 12px;
}
.auth-page .footer__copy { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .auth-page * { transition: none; } }

.auth-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-card-heading h2 { min-width: 0; }
.auth-inventory { display: block; flex: 0 0 auto; width: 112px; max-width: 32%; height: auto; object-fit: contain; }

/* Password forms reuse the sign-in surface and keep errors beside their fields. */
.auth-layout--single { display: block; width: min(100%, 600px); margin-inline: auto; padding-top: 28px; }
.auth-layout--single .auth-card { max-width: none; }
.auth-card > h1 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; }
.auth-password-form { padding: 0; }
.auth-password-form > p { display: grid; gap: 8px; margin: 0; }
.auth-password-form label { font-size: 14px; font-weight: 600; }
.auth-password-form input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px; margin: 0; border: 1px solid #aeb3bb; border-radius: 10px; background: #fff; color: var(--guud-ink, #1c1c1c); font: inherit; }
.auth-password-form input:focus { border-color: var(--guud-ink, #1c1c1c); box-shadow: 0 0 0 3px #f0b32340; }
.auth-password-form input[aria-invalid="true"] { border-color: #b13a31; }
.auth-password-form .helptext { font-size: 12px; line-height: 1.6; color: #626873; }
.auth-password-form .helptext ul, .auth-password-form .errorlist { padding-left: 18px; }
.auth-password-form .errorlist { color: #a52222; font-size: 13px; line-height: 1.5; }
.auth-password-form .auth-submit { margin-top: 4px; }
.auth-back { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 24px; padding: 9px 14px; border: 1px solid #d9dde1; border-radius: 9px; background: #fff; font-size: 13px; font-weight: 500; }
.auth-page .auth-back:hover { background: #f6f7f8; text-decoration: none; }
.auth-page .auth-messages .custom-alert { position: static; width: auto; margin: 16px 0 0; color: var(--guud-ink, #1c1c1c); }

.auth-service-page .auth-header { flex-wrap: wrap; }
.auth-service-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.auth-service-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.auth-service-page .footer .auth-service-nav { justify-content: center; margin-bottom: 6px; }
@media screen and (max-width: 600px) {
  .auth-service-page:has(#sis-tutorial-root) .footer {
    padding-bottom: calc(56px + max(.75rem, env(safe-area-inset-bottom)));
  }
}
