
/* Staff sign-in redesign */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.auth-brand {
  position: relative;
  display: flex;
  overflow: hidden;
  background: var(--navy);
}

.auth-brand-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #22215e 0%, var(--navy) 45%, var(--navy-2) 100%);
}

.auth-brand-art i { display: block; }

.auth-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: authGridPan 10s linear infinite;
}

.auth-beam { position: absolute; top: -15%; bottom: -15%; }
.auth-beam.b1 { left: 4%; width: 26%; background: linear-gradient(90deg, transparent, rgba(226, 0, 26, .45), transparent); filter: blur(2px); animation: authBeam 7s ease-in-out infinite; }
.auth-beam.b2 { left: 44%; width: 16%; background: linear-gradient(90deg, transparent, rgba(226, 0, 26, .28), transparent); filter: blur(3px); animation: authBeam2 9s ease-in-out infinite; }
.auth-beam.b3 { left: 68%; width: 12%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); animation: authBeam 11s ease-in-out infinite; }
.auth-beam.b4 { left: 82%; width: 8%; background: linear-gradient(90deg, transparent, rgba(226, 0, 26, .22), transparent); filter: blur(2px); animation: authBeam2 6s ease-in-out infinite; }

.auth-wordmark {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.auth-wordmark .wm {
  position: relative;
  display: inline-block;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(88px, 9vw, 148px);
  font-style: italic;
  /* F7: match the expanded italic face in the existing Google Fonts request. */
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.01em;
  white-space: nowrap;
  user-select: none;
  animation: authFloat 9s ease-in-out infinite;
}

.wm span { display: block; }
.wm .wm-echo { position: absolute; inset: 0; transform: translate(.35vw, .35vw); color: rgba(226, 0, 26, .16); }
.wm .wm-outline { position: relative; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .18); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); background-clip: text; }
.wm .wm-shimmer { position: absolute; inset: 0; color: transparent; background-image: linear-gradient(100deg, transparent 38%, rgba(226, 0, 26, .75) 47%, rgba(255, 255, 255, .9) 50%, rgba(226, 0, 26, .75) 53%, transparent 62%); background-size: 60% 100%; background-repeat: no-repeat; background-clip: text; animation: authShimmer 4.5s ease-in-out infinite; }
.wm .wm-bar { position: absolute; right: -2%; bottom: -1.4vw; left: 2%; height: .42vw; overflow: hidden; transform: skewX(-12deg); background: rgba(226, 0, 26, .18); }
.wm .wm-bar i { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--red) 25%, #ff5a66 50%, var(--red) 75%, transparent); animation: authBarRun 2.4s cubic-bezier(.45, 0, .35, 1) infinite; }

.auth-chevrons { position: absolute; right: 0; bottom: 10%; left: -80px; height: 54px; overflow: hidden; opacity: .5; }
.auth-chevrons div { display: flex; gap: 44px; width: calc(100% + 240px); height: 100%; animation: authChev 1.6s linear infinite; }
.auth-chevrons i { flex: none; width: 32px; transform: skewX(-24deg); background: rgba(255, 255, 255, .1); }
.auth-chevrons i:nth-child(4n + 1) { background: rgba(226, 0, 26, .55); }

.auth-rings { position: absolute; bottom: 18%; left: 14%; width: 340px; height: 340px; margin-bottom: -170px; margin-left: -170px; }
.auth-rings i { position: absolute; inset: 0; border: 1.5px solid rgba(226, 0, 26, .55); border-radius: 50%; opacity: 0; animation: authRing 3.6s ease-out infinite; }
.auth-rings i:nth-child(2) { animation-delay: 1.2s; }
.auth-rings i:nth-child(3) { animation-delay: 2.4s; }
.auth-scrim { position: absolute; inset: 0; background: linear-gradient(200deg, transparent, rgba(20, 18, 61, .25) 60%, rgba(20, 18, 61, .75)); }

.auth-brand-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 44px 48px;
  pointer-events: none;
}

.auth-brand-copy .brand-lockup { padding: 0; border-bottom: 0; }
.auth-tagline { display: grid; gap: 14px; max-width: 420px; margin-inline-start: 44px; }
.auth-tagline h2 { margin: 0; color: var(--bg); font: 900 clamp(26px, 3vw, 38px)/1.15 var(--font-display); letter-spacing: -.02em; text-wrap: pretty; }
.auth-tagline p { margin: 0; color: rgba(242, 243, 251, .62); font-size: 14px; line-height: 1.55; }

.auth-form-col { display: grid; place-items: center; padding: 32px 24px; }
.auth-card-wrap { width: min(400px, 100%); }
.auth-mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-mobile-brand strong { display: block; color: var(--ink); font: 800 var(--text-title-sm)/1.1 var(--font-display); letter-spacing: .03em; }
.auth-mobile-brand span { color: var(--muted); font-size: var(--text-body-sm); }

.auth-card { padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0; color: var(--ink); font: 900 22px/1.2 var(--font-display); }
.auth-card > p { margin: 8px 0 0; color: var(--muted); font-size: var(--text-body); line-height: 1.5; }
.auth-card .form-message { margin-top: 18px; }
.auth-card .form-message.error { color: var(--danger); background: #fff8f9; box-shadow: none; }
.auth-card .login-form { margin-bottom: 0; }
.auth-card .login-form button[type='submit']:disabled { cursor: default; opacity: .7; }
.auth-card .login-form button[type='submit'] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-refresh-progress { display: flex; align-items: flex-start; gap: 7px; margin: -3px 2px 0; color: #73778a; font-size: 10.5px; font-weight: 700; line-height: 1.45; }
.login-refresh-progress svg { flex: none; margin-top: 1px; color: var(--navy); }

.password-control { display: grid; gap: 7px; }
.pw-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pw-row label { color: #4c4f62; font-size: var(--text-caption); font-weight: 800; }
.pw-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.pw-row a { color: var(--red); font-size: var(--text-body-sm); font-weight: 700; }
.pw-field { position: relative; display: block; }
.pw-field input { padding-inline-end: 74px; }
.login-form .pw-toggle { position: absolute; top: 50%; inset-inline-end: 8px; min-height: 32px; padding: 0 10px; transform: translateY(-50%); border-radius: 8px; background: var(--bg); box-shadow: none; color: #3a3866; font-size: var(--text-caption); font-weight: 800; letter-spacing: .04em; }
.login-form .pw-toggle:hover { background: var(--border); }

.auth-footnote { margin: 18px 4px 0; color: #9a9ab2; font-size: var(--text-body-sm); line-height: 1.5; text-align: center; }
.auth-footnote a { color: var(--muted); font-weight: 700; }

.oauth-consent-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--bg); }
.oauth-consent-card { display: grid; gap: 18px; width: min(100%, 520px); padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.oauth-consent-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font: 900 var(--text-title-sm)/1 var(--font-display); letter-spacing: .04em; }
.oauth-consent-brand img { width: 34px; height: 34px; }
.oauth-consent-icon { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; border-radius: 14px; background: var(--navy); }
.oauth-consent-copy { display: grid; gap: 7px; }
.oauth-consent-copy h1, .oauth-consent-copy p { margin: 0; }
.oauth-consent-copy h1 { color: var(--ink); font: 900 24px/1.2 var(--font-display); }
.oauth-consent-copy p { color: var(--muted); font-size: var(--text-body); line-height: 1.55; }
.oauth-consent-copy .oauth-consent-kicker { color: var(--red); font-size: var(--text-caption); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.oauth-consent-safety { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 13px; color: #235f3a; border: 1px solid #cfe5d5; border-radius: 12px; background: #f2faf4; }
.oauth-consent-safety span { display: grid; gap: 3px; }
.oauth-consent-safety strong { font-size: var(--text-caption); }
.oauth-consent-safety small, .oauth-consent-scopes, .oauth-consent-account { color: var(--muted); font-size: var(--text-micro); line-height: 1.45; }
.oauth-consent-scopes, .oauth-consent-account { margin: 0; }
.oauth-consent-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.oauth-consent-actions button { min-height: var(--control-touch); }
.oauth-consent-account { text-align: center; }

@keyframes authGridPan { to { background-position: 56px 56px; } }
@keyframes authBeam { 0%, 100% { transform: translateX(-18%) skewX(-18deg); } 50% { transform: translateX(14%) skewX(-18deg); } }
@keyframes authBeam2 { 0%, 100% { transform: translateX(12%) skewX(-18deg); } 50% { transform: translateX(-16%) skewX(-18deg); } }
@keyframes authFloat { 0%, 100% { transform: translate(0) scale(1); } 50% { transform: translate(1.5%, -1.5%) scale(1.03); } }
@keyframes authShimmer { 0% { background-position: -120% 0; } 100% { background-position: 220% 0; } }
@keyframes authChev { to { transform: translateX(76px); } }
@keyframes authRing { 0% { transform: scale(.6); opacity: .6; } 70% { opacity: .1; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes authBarRun { 0% { left: -40%; } 100% { left: 110%; } }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { display: none; }
  .auth-mobile-brand { display: flex; }
}

@media (max-width: 480px) {
  .auth-form-col { align-items: start; padding: 48px 18px 24px; }
  .auth-card { padding: 28px 24px; }
  .oauth-consent-card { padding: 24px; }
  .oauth-consent-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand * { animation: none !important; }
}
