/* =============================================================================
   auth-theme.css - "Aurora" theme for the account pages (2026-11-07, Shiveer chose
   variant 3 of the sign-in preview): flowing navy / blue / soft-red aurora behind a
   frosted glass card, Inter, and an animated EmpowerHRM hero mark.

   Opt-in: only pages whose <body> has class "auth-aurora" are affected. Load it AFTER
   each page's own CSS (login-styles.css, inline styles, Bootstrap).
   Pages: Account/Login, ForgotPassword, ResetPassword, UpdateEmail, PasswordReset,
   SignUp, thankyou, Forbidden.

   Markup it expects on each page:
     <div class="auth-bg" aria-hidden="true"><i></i><i></i><i></i></div>   (first in <body>)
     <div class="auth-brand"> ... </div>   (see auth-brand below; replaces the old logos)

   Note: the brand guide discourages gradient backgrounds; the aurora was chosen
   deliberately for these pages. Red is kept to the primary action and errors.
   ============================================================================= */

body.auth-aurora {
  --au-navy: #061A2E;
  --au-ink: #F8FAFC;
  --au-muted: rgba(226,232,240,.74);
  --au-faint: rgba(148,163,184,.85);
  --au-glass: rgba(255,255,255,.07);
  --au-glass-line: rgba(255,255,255,.14);
  --au-field: rgba(6,26,46,.45);
  --au-field-line: rgba(255,255,255,.16);
  --au-red: #DD1533;
  --au-font: "Inter", "Segoe UI", Aptos, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--au-navy) !important;
  color: var(--au-ink) !important;
  font-family: var(--au-font) !important;
  letter-spacing: 0 !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
body.auth-aurora :is(h1, h2, h3, h4, h5, p, label, span, a, li, th, td, input, button, select, textarea, .btn) { font-family: var(--au-font); letter-spacing: 0; }

/* ---------- aurora background ---------- */
body.auth-aurora #vanta-bg, body.auth-aurora canvas#nodes { display: none !important; }
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--au-navy); pointer-events: none; }
.auth-bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.auth-bg i:nth-child(1) { background: #1d3a5f; top: -20vmax; left: -15vmax; animation: auA 18s ease-in-out infinite alternate; }
.auth-bg i:nth-child(2) { background: #3b6fb0; bottom: -25vmax; right: -20vmax; opacity: .38; animation: auB 22s ease-in-out infinite alternate; }
.auth-bg i:nth-child(3) { background: #DD1533; width: 34vmax; height: 34vmax; top: 40%; left: 55%; opacity: .22; animation: auC 26s ease-in-out infinite alternate; }
@keyframes auA { to { transform: translate(30vw, 20vh) scale(1.15); } }
@keyframes auB { to { transform: translate(-25vw, -15vh) scale(.9); } }
@keyframes auC { to { transform: translate(-40vw, -25vh) scale(1.3); } }

/* everything else sits above the aurora */
body.auth-aurora > form, body.auth-aurora > .thankyou-container, body.auth-aurora > div:not(.auth-bg) { position: relative; z-index: 1; }
body.auth-aurora :is(.login-page, .reset-page) { background: transparent !important; min-height: 100vh; }

/* ---------- glass card ---------- */
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card) {
  background: var(--au-glass) !important;
  border: 1px solid var(--au-glass-line) !important;
  border-radius: 22px !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.10) !important;
  color: var(--au-ink) !important;
  animation: auRise .7s cubic-bezier(.2,.7,.2,1) both;
}
body.auth-aurora :is(.login-container, .reset-container)::before { display: none !important; }
@keyframes auRise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card) :is(h1, h2, h3, .card-title) {
  color: var(--au-ink) !important; font-weight: 600 !important; letter-spacing: -.02em !important; text-transform: none !important;
}
body.auth-aurora :is(.login-container, .reset-container) h1 { font-size: 26px !important; line-height: 32px !important; margin: 24px 0 6px !important; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card) :is(p, li, .intro-text, .small) { color: var(--au-muted) !important; }
body.auth-aurora :is(label, .section-label) { color: var(--au-muted) !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.auth-aurora a { color: #CBD5E1; }
body.auth-aurora a:hover { color: #fff; }

/* old logo treatment is replaced by .auth-brand */
body.auth-aurora .system-name, body.auth-aurora .product-logo, body.auth-aurora .response-logo,
body.auth-aurora .thankyou-container > .logo, body.auth-aurora .brandbar { display: none !important; }

/* ---------- brand block: Response endorsement + EmpowerHRM hero mark ---------- */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 4px; }
.auth-brand .auth-response { width: 132px; max-width: 60%; height: auto; display: block; opacity: .92; }
.auth-app { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.auth-mark { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.auth-mark::before { content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(148,163,184,.35), rgba(148,163,184,0)); animation: auHalo 4.5s ease-in-out infinite; }
.auth-mark::after { content: ""; position: absolute; inset: 0; border-radius: 30px; padding: 2px;
  background: conic-gradient(from var(--au-a, 0deg), rgba(255,255,255,.08), rgba(255,255,255,.85), rgba(221,21,51,.65), rgba(255,255,255,.08) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: auSpin 6s linear infinite; }
@property --au-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes auSpin { to { --au-a: 360deg; } }
@keyframes auHalo { 50% { transform: scale(1.08); opacity: .7; } }
.auth-tile { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffffff, #eef2f7); box-shadow: 0 18px 40px rgba(0,0,0,.40), inset 0 -2px 0 rgba(6,26,46,.06);
  animation: auFloat 6s ease-in-out infinite; }
.auth-tile img { width: 62px; height: auto; display: block; margin: 0; max-width: none; }
@keyframes auFloat { 50% { transform: translateY(-4px); } }
.auth-wordmark { font-size: 30px; line-height: 34px; letter-spacing: -.03em; color: var(--au-ink); }
.auth-wordmark span { font-weight: 300; color: var(--au-ink); }
.auth-wordmark b { font-weight: 700; }
@media (max-width: 420px) { .auth-mark { width: 96px; height: 96px; } .auth-tile { width: 82px; height: 82px; border-radius: 22px; } .auth-tile img { width: 52px; } .auth-wordmark { font-size: 26px; } }

/* ---------- fields ---------- */
body.auth-aurora :is(.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select, textarea, .otp-input) {
  background: var(--au-field) !important;
  border: 1px solid var(--au-field-line) !important;
  color: var(--au-ink) !important;
  border-radius: 10px !important;
  font-family: var(--au-font) !important;
  box-shadow: none !important;
}
body.auth-aurora :is(.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) { height: 48px; }
body.auth-aurora textarea { height: auto; }
body.auth-aurora :is(input, textarea, .form-control)::placeholder { color: rgba(226,232,240,.42) !important; opacity: 1; }
body.auth-aurora :is(.form-control, input, select, textarea):focus {
  border-color: rgba(148,163,184,.8) !important; box-shadow: 0 0 0 3px rgba(148,163,184,.22) !important; outline: none; transform: none !important;
}
body.auth-aurora select option { background: #0B2540; color: var(--au-ink); }

/* ---------- messages ---------- */
body.auth-aurora :is(.error-message, .message) { color: #FCA5B4 !important; font-weight: 600 !important; }
body.auth-aurora :is(.notice, .alert, .alert-info) {
  background: rgba(255,255,255,.06) !important; border: 1px solid var(--au-glass-line) !important; color: var(--au-muted) !important; border-radius: 12px !important;
}
body.auth-aurora .alert strong, body.auth-aurora .notice strong { color: var(--au-ink); }

/* ---------- buttons ---------- */
/* primary action: brand red (the one strong red on the screen) */
body.auth-aurora :is(button.btn-primary, .btn, input[type="submit"]:not(.fpl-realbtn):not(.cta-btn--outline), .cta-btn--primary) {
  background: var(--au-red) !important; border-color: var(--au-red) !important; color: #fff !important;
  border-radius: 10px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
  box-shadow: 0 10px 24px rgba(221,21,51,.28) !important;
}
body.auth-aurora :is(button.btn-primary, .btn, input[type="submit"], .cta-btn--primary):hover { background: #c4122e !important; border-color: #c4122e !important; }
/* secondary links/buttons: quiet glass */
body.auth-aurora :is(.cta-btn--outline, .secondary-link, .cta-row .cta-btn--primary) {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.18) !important; color: var(--au-ink) !important;
  box-shadow: none !important; border-radius: 10px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.auth-aurora :is(.cta-btn--outline, .secondary-link, .cta-row .cta-btn--primary):hover { background: rgba(255,255,255,.12) !important; }
/* the Login card's secondary row (Forgot password / Request access) - more specific than the red primary rule above */
body.auth-aurora .login-container .cta-row a.cta-btn.cta-btn--primary,
body.auth-aurora .login-container .cta-row a.cta-btn.cta-btn--outline {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.18) !important; color: var(--au-ink) !important; box-shadow: none !important;
}
body.auth-aurora .login-container .cta-row a.cta-btn:hover { background: rgba(255,255,255,.12) !important; }
body.auth-aurora :is(button, a, input, .fpl-btn):focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }

/* fingerprint sign-in button: keeps its animation, now brand red with a soft glow */
body.auth-aurora .fpl-btn { background: var(--au-red) !important; box-shadow: 0 14px 34px rgba(221,21,51,.35), inset 0 1px 0 rgba(255,255,255,.18) !important; }
body.auth-aurora .fpl-btn:focus { box-shadow: 0 14px 34px rgba(221,21,51,.35), 0 0 0 4px rgba(255,255,255,.35) !important; }
body.auth-aurora .fpl-text { font-family: var(--au-font) !important; font-weight: 600 !important; letter-spacing: .01em !important; font-size: 18px; }
body.auth-aurora .fpl-print { stroke: rgba(255,255,255,.55); }
body.auth-aurora .fpl-print--active { stroke: #fff; }

/* ---------- password-reset wizard ---------- */
body.auth-aurora :is(.wizard-step, .step) { color: var(--au-faint) !important; }
body.auth-aurora :is(.wizard-step.active, .step.active) { color: var(--au-ink) !important; }

/* ---------- Forbidden: details table on glass ---------- */
body.auth-aurora .card .table, body.auth-aurora .card .table :is(th, td) {
  background: transparent !important; color: var(--au-ink) !important; border-color: rgba(255,255,255,.12) !important;
}
body.auth-aurora .card .table th { color: var(--au-muted) !important; font-weight: 500; }
body.auth-aurora .card h5 { color: var(--au-ink) !important; font-weight: 600; font-size: 15px; }
body.auth-aurora .card-body { padding: 28px; }

@media (prefers-reduced-motion: reduce) {
  .auth-bg i, .auth-mark::before, .auth-mark::after, .auth-tile,
  body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card) { animation: none !important; }
}

/* eyebrow label between the brand block and the page heading */
body.auth-aurora .section-label { display: block; margin: 22px 0 -16px !important; font-size: 11.5px !important; font-weight: 600 !important;
  letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--au-faint) !important; }
/* thank-you and Forbidden headings have no top margin of their own */
body.auth-aurora :is(.thankyou-container, .card) .auth-brand { margin-bottom: 24px; }

/* ---------- tabs: Sign in | Request access | Forgot password (2026-11-07, Shiveer: "single page, tabs") ----------
   Each tab is its own page, but cross-document view transitions keep the aurora and the card in
   place while the content cross-fades, so it reads as one page. Browsers without view transitions
   just navigate normally. */
@view-transition { navigation: auto; }
body.auth-aurora .auth-bg { view-transition-name: auth-bg; }
body.auth-aurora :is(.login-container, .reset-container) { view-transition-name: auth-card; }
::view-transition-group(auth-card) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
::view-transition-old(auth-card), ::view-transition-new(auth-card) { animation-duration: .25s; }
::view-transition-old(auth-bg), ::view-transition-new(auth-bg) { animation: none; mix-blend-mode: normal; }
/* root: same soft blur crossfade as the app (sign-out into this page, page to page) */
::view-transition-old(root) { animation: auVtOut .32s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: auVtIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes auVtOut { to { opacity: 0; filter: blur(6px); } }
@keyframes auVtIn { from { opacity: 0; filter: blur(6px); } }

/* aurora phase follows the clock (set in the head script) so it continues across tab switches */
.auth-bg i { animation-delay: var(--au-t, 0s) !important; }
/* arriving from a tab: no card entrance animation */
html.auth-tabnav body.auth-aurora :is(.login-container, .reset-container) { animation: none !important; }

.auth-tabs { display: flex; gap: 4px; margin: 22px 0 4px; padding: 4px; border-radius: 12px;
  background: rgba(6,26,46,.45); border: 1px solid rgba(255,255,255,.12); }
.auth-tabs a { flex: 1; display: grid; place-items: center; min-height: 38px; padding: 0 8px; border-radius: 9px;
  color: var(--au-muted) !important; text-decoration: none !important; font-size: 13.5px; font-weight: 500; text-align: center;
  transition: background .2s ease, color .2s ease; }
.auth-tabs a:hover { color: var(--au-ink) !important; background: rgba(255,255,255,.06); }
.auth-tabs a.is-active { background: rgba(255,255,255,.14); color: var(--au-ink) !important; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
@media (max-width: 420px) { .auth-tabs a { font-size: 12.5px; padding: 0 4px; } }
/* the tabs replace the Login card's Forgot password / Request access buttons */
body.auth-aurora .auth-tabs ~ .cta-row { display: none !important; }
/* password-reset wizard chips on glass */
body.auth-aurora .wizard-step { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--au-faint) !important; border-radius: 9px !important; box-shadow: none !important; }
body.auth-aurora .wizard-step.active { background: rgba(221,21,51,.22) !important; border-color: rgba(221,21,51,.55) !important; color: #fff !important; font-weight: 600 !important; }

/* =============================== animations (2026-11-07, Shiveer: "include animations") =============================== */
/* 1. content cascades up, item by item (also when switching tabs - the card stays, its content re-flows in) */
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container) > *,
body.auth-aurora .card-body > * { animation: auItem .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes auItem { from { opacity: 0; transform: translateY(10px); } }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(1) { animation-delay: .05s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(2) { animation-delay: .10s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(3) { animation-delay: .15s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(4) { animation-delay: .20s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(5) { animation-delay: .25s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(6) { animation-delay: .30s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(7) { animation-delay: .35s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(8) { animation-delay: .40s; }
body.auth-aurora :is(.login-container, .reset-container, .thankyou-container, .card-body) > :nth-child(n+9) { animation-delay: .45s; }
/* arriving from a tab: the brand block is already in place, the rest cascades quicker */
html.auth-tabnav body.auth-aurora :is(.login-container, .reset-container) > .auth-brand { animation: none; }
html.auth-tabnav body.auth-aurora :is(.login-container, .reset-container) > * { animation-duration: .4s; }

/* 2. the active tab's pill glides to its new place between pages */
body.auth-aurora .auth-tabs a.is-active { view-transition-name: auth-tab-pill; }
body.auth-aurora .auth-brand { view-transition-name: auth-brand; }
::view-transition-group(auth-tab-pill) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }

/* 3. primary button: sheen sweep on hover; fingerprint button breathes while idle */
body.auth-aurora :is(button.btn-primary, .btn, input[type="submit"]:not(.fpl-realbtn):not(.cta-btn--outline)) {
  background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 46%, transparent 62%) !important;
  background-size: 250% 100% !important; background-position: 130% 0 !important; background-repeat: no-repeat !important;
  transition: background-position .7s ease, transform .15s ease, box-shadow .2s ease !important;
}
body.auth-aurora :is(button.btn-primary, .btn, input[type="submit"]:not(.fpl-realbtn):not(.cta-btn--outline)):hover {
  background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 46%, transparent 62%) !important;
  background-size: 250% 100% !important; background-repeat: no-repeat !important;
  background-position: -30% 0 !important; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(221,21,51,.38) !important;
}
body.auth-aurora .fpl-btn:not(.is-active) { animation: auBreathe 3.2s ease-in-out infinite; }
@keyframes auBreathe { 50% { box-shadow: 0 14px 34px rgba(221,21,51,.35), 0 0 0 8px rgba(221,21,51,.12), inset 0 1px 0 rgba(255,255,255,.18); } }

/* 4. fields: glow grows in on focus */
body.auth-aurora :is(.form-control, input, select, textarea) { transition: border-color .25s ease, box-shadow .35s ease, background-color .25s ease !important; }
body.auth-aurora :is(.form-control, input, select, textarea):focus { background-color: rgba(6,26,46,.62) !important;
  box-shadow: 0 0 0 3px rgba(148,163,184,.22), 0 8px 26px rgba(59,111,176,.22) !important; }

/* 5. a sign-in error arrives with a short shake */
body.auth-aurora .error-message:not(:empty) { animation: auShake .45s cubic-bezier(.36,.07,.19,.97) both .35s; }
@keyframes auShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 6. a slow light passes across "HRM" */
.auth-wordmark b { background: linear-gradient(100deg, #fff 40%, #fecdd3 50%, #fff 60%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: auSheen 5.5s ease-in-out infinite; }
@keyframes auSheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  body.auth-aurora *, .auth-wordmark b { animation: none !important; transition: none !important; }
  body.auth-aurora .auth-tabs a.is-active, body.auth-aurora .auth-brand { view-transition-name: none; }
}

/* ---------- EmpowerHRM mark without the white box (2026-11-07, Shiveer) ----------
   Light version of the icon (navy parts white, red kept) floating on a frosted orb, inside a
   circular rotating light ring. Overrides the square tile above. */
.auth-mark { width: 120px; height: 120px; }
.auth-mark::before { inset: -18px; background: radial-gradient(closest-side, rgba(59,111,176,.45), rgba(221,21,51,.12) 55%, rgba(6,26,46,0)); }
.auth-mark::after { border-radius: 50%; padding: 1.5px; }
.auth-tile { width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.20), rgba(255,255,255,.05) 58%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -10px 24px rgba(6,26,46,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.auth-tile img { width: 64px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
@media (max-width: 420px) { .auth-mark { width: 104px; height: 104px; } .auth-tile { width: 90px; height: 90px; border-radius: 50%; } .auth-tile img { width: 54px; } }

/* ---------- plain logo (2026-11-07, Shiveer: "just place the logo, no shape") ----------
   No tile, orb, ring or halo - only the light icon, larger, with a soft shadow. */
.auth-mark { width: auto; height: auto; }
.auth-mark::before, .auth-mark::after { content: none !important; display: none !important; }
.auth-tile { width: auto; height: auto; border-radius: 0; background: none !important; border: 0 !important;
  box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; }
.auth-tile img { width: 88px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.40)); }
@media (max-width: 420px) { .auth-mark, .auth-tile { width: auto; height: auto; } .auth-tile img { width: 76px; } }
