/* Public authentication only; the administrative workspace keeps portal.css. */
.auth-entry {
  --auth-muted: #656762;
  --auth-outline: #a5a7a2;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--color-white);
}
.auth-entry :where(a, button, input, select):focus-visible { outline: 2px solid var(--color-bronze); outline-offset: 3px; }
.auth-institutional {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 56px) 88px;
  background: var(--color-gunmetal);
  color: var(--color-white);
}
.auth-masthead { display: flex; gap: 12px; align-items: center; }
.auth-masthead img { flex: none; }
.auth-masthead b { display: block; font: 750 22px/1.15 var(--display); letter-spacing: -.035em; }
.auth-masthead span { display: block; margin-top: 3px; color: #d9dad7; font-size: 12px; line-height: 1.4; }
.auth-brand-core { display: grid; justify-items: center; gap: 24px; margin-block: auto; padding-top: 20px; text-align: center; }
.auth-emblem { position: relative; display: grid; place-items: center; width: min(100%, clamp(260px, 28vw, 400px)); aspect-ratio: 1; }
.auth-ambient { position: absolute; inset: -4%; background: radial-gradient(ellipse, #c49a581a 0%, #c49a5807 42%, transparent 68%); pointer-events: none; }
.auth-rings { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--color-gold-navigation); stroke-width: .8; opacity: .42; }
.auth-rings circle:nth-child(2) { opacity: .7; }
.auth-rings circle:nth-child(3) { opacity: .45; }
.auth-symbol { position: relative; width: 38%; height: auto; }
.auth-brand-lockup .brand-lockup { justify-items: center; gap: 10px; }
.auth-brand-lockup .brand-lockup-pillars { justify-content: center; font-size: clamp(16px, 1.45vw, 21px); gap: 6px 8px; }
.auth-brand-lockup .brand-lockup-signature { font-size: clamp(15px, 1.35vw, 19px); }
.auth-purpose { display: grid; justify-items: center; gap: 18px; }
.auth-purpose > span { width: 52px; height: 1px; background: #c49a5866; }
.auth-purpose p { max-width: 320px; color: #d9dad7; font-size: 13px; line-height: 1.65; text-wrap: balance; }
.auth-credit { z-index: 1; grid-area: 1 / 1; align-self: end; padding: 24px clamp(24px, 3vw, 56px); color: #b7b9b3; font-size: 11px; line-height: 1.5; }
.auth-functional {
  grid-area: 1 / 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px clamp(24px, 4.5vw, 88px) 28px;
}
.auth-utilities { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; font-size: 13px; }
.auth-home { display: inline-flex; min-height: 44px; gap: 6px; align-items: center; color: var(--color-bronze); }
.auth-home .icon { width: 17px; height: 17px; }
.auth-home:hover span, .auth-footer a:hover, .auth-text-button:hover, .auth-partner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-utility-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.auth-locale select { min-width: 64px; min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 6px; color: var(--auth-muted); background: transparent; }
.auth-locale select:hover { border-color: var(--line); }
.auth-form-wrap { width: 100%; max-width: 420px; margin: auto; outline: none; }
.auth-heading { margin-bottom: 28px; }
.auth-eyebrow { margin-bottom: 8px; color: var(--color-bronze); font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.auth-heading h1 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.auth-intro { margin-top: 10px; color: var(--auth-muted); font-size: 14px; line-height: 1.65; }
.auth-entry form { display: grid; gap: 18px; margin: 0; }
.auth-field { min-width: 0; }
.auth-field-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 36px; margin-top: -4px; }
.auth-field label { padding-block: 6px; font-size: 14px; font-weight: 600; }
.auth-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 0; background: transparent; border: 0; border-radius: 4px; color: var(--color-bronze); font-size: 13px; }
.auth-field-heading .auth-text-button { margin-block: -4px; }
.auth-input-wrap { position: relative; }
.auth-entry input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--auth-outline); border-radius: var(--control); color: var(--color-gunmetal); background: var(--color-white); font-size: 16px; line-height: 1.5; transition: border-color var(--motion), box-shadow var(--motion); }
.auth-entry input::placeholder { color: #757770; opacity: 1; }
.auth-entry input:focus { border-color: var(--color-bronze); box-shadow: 0 0 0 1px var(--color-bronze); }
.auth-entry input[data-auth-password] { padding-right: 54px; }
.auth-entry input[aria-invalid="true"] { border-color: var(--danger); }
.auth-password-toggle { position: absolute; inset: 3px 3px 3px auto; width: 44px; min-height: 44px; display: grid; place-items: center; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--auth-muted); }
.auth-password-toggle:hover { background: #2b2d2b08; color: var(--color-gunmetal); }
.auth-password-toggle svg { width: 21px; height: 21px; }
.auth-password-toggle .auth-eye-slash { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { display: block; }
.auth-field-error { margin-top: 7px; color: var(--danger); font-size: 13px; line-height: 1.5; }
.auth-submit, .auth-google { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--control); font-size: 14px; font-weight: 600; line-height: 1.5; transition: background var(--motion), border-color var(--motion); }
.auth-submit { color: var(--color-white); background: var(--color-bronze); }
.auth-submit:not(:disabled):hover { background: #695027; }
.auth-submit:not(:disabled):active { background: #5b4522; }
.auth-back { display: flex; margin: 12px auto 0; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin-block: 20px; color: var(--auth-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-google { border-color: #747775; background: var(--color-white); color: #1f1f1f; font-family: 'Google Sans', Arial, sans-serif; font-weight: 500; }
.auth-google:not(:disabled):hover { background: #2b2d2b05; border-color: #747775; }
.auth-entry .google-signin-mark { flex: none; }
.auth-account-note { margin-top: 16px; color: var(--auth-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.auth-partner { margin-top: 22px; text-align: center; font-size: 13px; }
.auth-partner p { color: var(--auth-muted); }
.auth-partner a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--color-bronze); font-weight: 600; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--auth-muted); font-size: 12px; }
.auth-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.auth-status, .auth-feedback { margin-top: 16px; padding: 12px 14px; border-radius: var(--control); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-status { color: var(--color-gunmetal); background: #2b2d2b08; }
.auth-feedback { border: 1px solid #24614a55; color: var(--success); background: var(--success-surface); }
.auth-feedback.is-error { border-color: #953e3a66; color: var(--danger); background: var(--danger-surface); }

@media (min-width: 740px) and (max-height: 760px) {
  .auth-institutional { padding-top: 24px; padding-bottom: 64px; }
  .auth-emblem { width: min(100%, 300px); }
  .auth-brand-core { gap: 18px; padding-top: 12px; }
  .auth-purpose { gap: 14px; }
  .auth-functional { padding-top: 12px; padding-bottom: 20px; }
  .auth-utilities { margin-bottom: 16px; }
  .auth-heading { margin-bottom: 20px; }
  .auth-entry form { gap: 16px; }
  .auth-divider { margin-block: 16px; }
  .auth-account-note { margin-top: 12px; }
  .auth-partner { margin-top: 16px; }
  .auth-footer { margin-top: 8px; }
}
@media (min-width: 740px) and (max-width: 1024px) and (orientation: landscape) {
  .auth-entry { grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); }
  .auth-institutional { padding-inline: 20px; }
  .auth-emblem { width: min(100%, 230px); }
  .auth-brand-lockup .brand-lockup-pillars { font-size: 14px; gap: 4px 5px; }
  .auth-brand-lockup .brand-lockup-signature { font-size: 13px; }
  .auth-masthead b { font-size: 20px; }
  .auth-functional { padding-inline: 28px; }
  .auth-credit { padding-inline: 20px; }
}
@media (min-width: 740px) and (max-height: 600px) {
  .auth-institutional { padding-top: 20px; }
  .auth-emblem { width: min(100%, 210px); }
  .auth-brand-core { gap: 16px; }
  .auth-purpose { display: none; }
  .auth-form-wrap { margin-block: 8px 0; }
}
@media (max-width: 739px), (max-width: 1024px) and (orientation: portrait) {
  .auth-entry { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .auth-institutional { grid-area: 1 / 1; padding: max(16px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-left, 0px)) 18px; gap: 16px; }
  .auth-masthead { gap: 10px; }
  .auth-masthead b { font-size: 20px; }
  .auth-masthead span { font-size: 11px; }
  .auth-brand-core { display: block; margin: 0; padding: 0; }
  .auth-emblem, .auth-purpose { display: none; }
  .auth-brand-lockup .brand-lockup { gap: 3px; }
  .auth-brand-lockup .brand-lockup-pillars { gap: 4px 6px; font-size: 12px; }
  .auth-brand-lockup .brand-lockup-signature { font-size: 14px; }
  .auth-functional { grid-area: 2 / 1; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .auth-utilities { margin-bottom: 20px; }
  .auth-form-wrap { margin-block: 0; }
  .auth-heading h1 { font-size: 28px; }
  .auth-heading { margin-bottom: 22px; }
  .auth-credit { grid-area: 3 / 1; padding: 8px 20px max(16px, env(safe-area-inset-bottom, 0px)); color: var(--auth-muted); text-align: center; }
}
@media (max-width: 359px) {
  .auth-brand-lockup .brand-lockup-pillars { display: none; }
  .auth-functional { padding-inline: 16px; }
  .auth-heading h1 { font-size: 26px; }
}
@media (max-width: 1024px) and (orientation: portrait) {
  .auth-institutional .auth-masthead { justify-content: center; }
  .auth-institutional .brand-lockup { justify-items: center; text-align: center; }
  .auth-institutional .brand-lockup-pillars { justify-content: center; }
}

@keyframes auth-mark-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-rings-in { from { opacity: 0; transform: scale(.96); } to { opacity: .42; transform: scale(1); } }
@keyframes auth-copy-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) {
  .auth-entry--reveal .auth-symbol { animation: auth-mark-in 400ms ease-out both; }
  .auth-entry--reveal .auth-rings { animation: auth-rings-in 800ms cubic-bezier(.2,.65,.35,1) 150ms both; }
  .auth-entry--reveal .auth-ambient { animation: auth-mark-in 800ms ease-out 100ms both; }
  .auth-entry--reveal .brand-lockup-pillars { animation: auth-copy-in 400ms ease-out 500ms both; }
  .auth-entry--reveal .brand-lockup-signature { animation: auth-copy-in 500ms ease-out 750ms both; }
  .auth-entry--reveal .auth-purpose { animation: auth-mark-in 300ms ease-out 1100ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-entry *, .auth-entry *::before, .auth-entry *::after { animation: none !important; transition: none !important; }
}
