/* ══════════════════════════════════════════════════════════
   Staff Sense — Sign In page
   Split "framed photo" auth layout: a soft rounded shell card
   holding a form panel on one side and a real team photo with
   floating glass stat cards spilling over its edge on the other.
   Builds on the shared tokens in theme.css (--ac, --tx, --panel-*)
   and layers "--au-*" tokens for this page's own surfaces.
   Mobile-first: base rules target phones; the two-column shell
   only appears from --bp-shell (900px) up.
   ══════════════════════════════════════════════════════════ */

:root {
  --au-font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --au-mono: 'JetBrains Mono', ui-monospace, monospace;

  --au-page-bg:
    radial-gradient(ellipse 60% 45% at 8% -6%, rgba(126, 59, 235, .08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 105%, rgba(56, 29, 114, .06), transparent 55%),
    #f0edf8;
  --au-shell-bg: linear-gradient(135deg, #fbf9fe 0%, #f6f2fc 55%, #f1ecf9 100%);
  --au-shell-shadow: 0 60px 140px -40px rgba(15, 23, 42, .28), 0 40px 100px -30px rgba(15, 23, 42, .35), 0 10px 30px -12px rgba(15, 23, 42, .12);
  --au-shell-inset: inset 0 1px 0 rgba(255, 255, 255, .55);
  --au-field-bg: rgba(15, 23, 42, .045);
  --au-field-bg-hover: rgba(15, 23, 42, .065);
  --au-field-bg-focus: rgba(15, 23, 42, .045);
  --au-field-ring: rgba(var(--ac-rgb), .16);
  --au-heading: #14171f;
  --au-sub: #6b7280;
  --au-label: #6b7280;
  --au-divider: rgba(15, 23, 42, .08);
  --au-pill-border: rgba(15, 23, 42, .14);
  --au-corner-accent:
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(var(--ac-rgb), .20), transparent 70%),
    radial-gradient(ellipse 45% 40% at 0% 0%, rgba(var(--ac-rgb), .10), transparent 70%);
  --au-grain-opacity: .025;
  --au-float-bg: rgba(255, 255, 255, .82);
  --au-float-border: rgba(255, 255, 255, .6);
  --au-float-shadow: 0 20px 50px -16px rgba(15, 23, 42, .35);
  --au-float-text: #1f2430;
  --au-float-sub: #6b7280;
  --au-scrim: linear-gradient(180deg, rgba(10, 14, 24, .05) 0%, rgba(10, 14, 24, 0) 30%, rgba(10, 14, 24, .38) 100%);
  --au-trust-bg: rgba(15, 23, 42, .035);
  --au-trust-border: rgba(15, 23, 42, .07);
}

:root[data-theme="light"] {
  /* explicit alias so future light-only overrides have a hook */
}

:root[data-theme="dark"] {
  --au-page-bg:
    radial-gradient(ellipse 70% 50% at 12% -8%, rgba(126, 59, 235, .10), transparent 55%),
    radial-gradient(ellipse 60% 45% at 105% 108%, rgba(56, 29, 114, .14), transparent 55%),
    #020912;
  --au-shell-bg: linear-gradient(150deg, #15121e 0%, #100e18 55%, #0d0b14 100%);
  --au-shell-shadow: 0 70px 160px -40px rgba(0, 0, 0, .55), 0 50px 120px -30px rgba(0, 0, 0, .7), 0 10px 30px -12px rgba(0, 0, 0, .5);
  --au-shell-inset: inset 0 1px 0 rgba(255, 255, 255, .08);
  --au-field-bg: rgba(255, 255, 255, .045);
  --au-field-bg-hover: rgba(255, 255, 255, .07);
  --au-field-bg-focus: rgba(255, 255, 255, .06);
  --au-field-ring: rgba(var(--ac-rgb), .22);
  --au-heading: #f3f5f9;
  --au-sub: #8b93a3;
  --au-label: #8b93a3;
  --au-divider: rgba(255, 255, 255, .09);
  --au-pill-border: rgba(255, 255, 255, .14);
  --au-corner-accent:
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(var(--ac-rgb), .20), transparent 70%),
    radial-gradient(ellipse 45% 40% at 0% 0%, rgba(var(--ac-rgb), .09), transparent 70%);
  --au-grain-opacity: .035;
  --au-float-bg: rgba(17, 21, 32, .74);
  --au-float-border: rgba(255, 255, 255, .10);
  --au-float-shadow: 0 20px 50px -14px rgba(0, 0, 0, .6);
  --au-float-text: #eef1f7;
  --au-float-sub: #9aa2b1;
  --au-scrim: linear-gradient(180deg, rgba(5, 7, 12, .15) 0%, rgba(5, 7, 12, 0) 30%, rgba(5, 7, 12, .55) 100%);
  --au-trust-bg: rgba(255, 255, 255, .035);
  --au-trust-border: rgba(255, 255, 255, .08);
}

/* ── Reset / base ─────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.au-body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--au-font);
  color: var(--tx);
  background: var(--au-page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease;
}
.au-body ::selection { background: rgba(var(--ac-rgb), .28); color: var(--tx); }

[data-reveal],
[data-reveal-inner] { opacity: 0; }

.no-js [data-reveal], .no-js [data-reveal-inner] { opacity: 1 !important; transform: none !important; }
.no-js .au-photo-frame img { opacity: 1 !important; }

/* ── Page frame ───────────────────────────────────────── */
.au-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* ── Shell: the big rounded two-panel card ───────────────── */
.au-shell {
  position: relative;
  width: 100%;
  max-width: 1320px;
  background: var(--au-shell-bg);
  border-radius: 28px;
  box-shadow: var(--au-shell-shadow), var(--au-shell-inset);
  display: flex;
  flex-direction: column;
}
/* No overflow:hidden on the shell itself — the floating cards need to
   spill past the photo's edge into the shell's own margin (see
   .au-float positions below). The background + ::after/::before still
   clip to the rounded corners on their own because border-radius
   applies to an element's own paint area regardless of a parent's
   overflow. */
.au-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--au-corner-accent);
  pointer-events: none;
}
/* Faint grain so the shell reads as textured glass rather than a flat
   vector fill — a tiny inline SVG turbulence filter, no extra request. */
.au-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  opacity: var(--au-grain-opacity);
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Form panel ───────────────────────────────────────── */
.au-form-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  min-height: 0;
}

.au-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.au-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--au-pill-border);
  color: var(--au-heading);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -.01em;
}
.au-logo-pill .mark {
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  flex-shrink: 0;
}
.au-logo-pill .mark svg { width: 14px; height: 14px; color: #fff; }
.au-logo-pill span.ac { color: var(--ac); }

.au-theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid var(--au-pill-border);
  color: var(--au-sub);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s, background-color .2s;
  flex-shrink: 0;
}
.au-theme-toggle:hover { color: var(--ac); border-color: rgba(var(--ac-rgb), .4); transform: translateY(-1px); }
.au-theme-toggle:active { transform: translateY(0) scale(.94); }
.au-theme-toggle svg { width: 17px; height: 17px; }
.au-theme-toggle .theme-ic-moon { display: none; }

.au-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 0;
}

.au-heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--au-heading);
  margin: 0 0 8px;
}

.au-sub {
  font-size: 15px;
  color: var(--au-sub);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Alerts ───────────────────────────────────────────── */
.au-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  padding: 11px 13px;
  border-radius: 14px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.au-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.au-alert-err { background: var(--red-bg); border: 1px solid var(--red-b); color: var(--dng); }
.au-alert-ok  { background: var(--grn-bg); border: 1px solid var(--grn-b); color: var(--grn); }

/* ── Form ─────────────────────────────────────────────── */
.au-field { margin-bottom: 16px; }

.au-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--au-label);
  margin-bottom: 8px;
}

.au-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--au-field-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.au-input-wrap:hover { background: var(--au-field-bg-hover); }
.au-input-wrap.is-focus {
  border-color: var(--ac);
  background: var(--au-field-bg-focus);
  box-shadow: 0 0 0 4px var(--au-field-ring);
}
.au-input-wrap.is-error { border-color: var(--dng); box-shadow: 0 0 0 4px rgba(var(--dng-rgb), .10); }

.au-input-ico {
  display: grid;
  place-items: center;
  width: 46px;
  color: var(--au-sub);
  flex-shrink: 0;
  transition: color .2s;
}
.au-input-wrap.is-focus .au-input-ico { color: var(--ac); }
.au-input-ico svg { width: 17px; height: 17px; }

.au-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--tx);
  font-family: var(--au-font);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 14px 16px 0;
}
.au-input::placeholder { color: var(--au-sub); font-weight: 400; }

/* Neutralize the browser's native autofill styling (usually a jarring
   yellow/white slab) so filled fields keep the same pill surface —
   the huge inset box-shadow paints over it and the transition delay
   prevents Chrome's autofill color flash on load. */
.au-input:-webkit-autofill,
.au-input:-webkit-autofill:hover,
.au-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tx);
  -webkit-box-shadow: none;
  box-shadow: none;
  caret-color: var(--tx);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}
.au-input-wrap.is-focus .au-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--au-field-bg-focus) inset;
  box-shadow: 0 0 0 1000px var(--au-field-bg-focus) inset;
}

.au-pw-toggle {
  background: transparent;
  border: 0;
  color: var(--au-sub);
  width: 42px;
  height: 42px;
  margin-right: 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .2s, background-color .2s;
  flex-shrink: 0;
}
.au-pw-toggle:hover { color: var(--tx); background: rgba(var(--ink-rgb), .06); }
.au-pw-toggle svg { width: 18px; height: 18px; }

.au-field-err {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--dng);
  margin-top: 7px;
  margin-left: 6px;
  font-family: var(--au-mono);
}
.au-field-err.d-none { display: none; }

.au-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 24px;
  gap: 10px;
}

.au-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--au-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

.au-checkbox { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.au-checkbox input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.au-checkbox .box {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1.5px solid var(--au-pill-border);
  background: var(--au-field-bg);
  display: grid;
  place-items: center;
  transition: background-color .18s, border-color .18s;
}
.au-checkbox .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }
.au-checkbox input:checked ~ .box { background: var(--accent-grad); border-color: transparent; }
.au-checkbox input:checked ~ .box svg { opacity: 1; transform: scale(1); }
.au-checkbox input:focus-visible ~ .box { outline: 2px solid var(--ac); outline-offset: 2px; }

.au-forgot { font-size: 13.5px; color: var(--ac); text-decoration: none; font-weight: 600; white-space: nowrap; }
.au-forgot:hover { text-decoration: underline; }

/* ── Submit button ────────────────────────────────────── */
.au-submit {
  position: relative;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--au-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px -10px var(--accent-shadow);
  transition: box-shadow .25s, transform .15s;
  --mx: 50%; --my: 50%;
}
.au-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.au-submit:hover::after { opacity: 1; }
.au-submit:hover { box-shadow: 0 20px 42px -10px var(--accent-shadow); transform: translateY(-1px); }
.au-submit:active { transform: translateY(0) scale(.985); }
.au-submit:disabled { cursor: default; }
.au-submit:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.au-submit .btn-arrow { transition: transform .2s ease; }
.au-submit:hover .btn-arrow { transform: translateX(3px); }
.au-submit .btn-spin, .au-submit .btn-check { display: none; }
.au-submit.loading .btn-label { opacity: 0; }
.au-submit.loading .btn-arrow { display: none; }
.au-submit.loading .btn-spin {
  display: block; position: absolute; width: 19px; height: 19px;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: auSpin .7s linear infinite;
}
@keyframes auSpin { to { transform: rotate(360deg); } }
.au-submit.success { background: linear-gradient(135deg, #059669, #10b981); }
.au-submit.success .btn-arrow { display: none; }
.au-submit.success .btn-check { display: block; animation: auPop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes auPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.au-submit .btn-label { transition: opacity .15s; }

/* ── Trust line + panel footer ───────────────────────────── */
.au-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--au-sub);
  margin-top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--au-trust-bg);
  border: 1px solid var(--au-trust-border);
}
.au-trust svg { width: 14.5px; height: 14.5px; color: var(--grn); flex-shrink: 0; }

.au-panel-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--au-sub);
  padding-top: 14px;
}

/* ══════════════════════════════════════════════════════════
   Photo block — one shared element, restyled per breakpoint
   instead of duplicated markup. Mobile: compact banner above
   the form (DOM order). Desktop (>=900px): right-hand column,
   reordered after the form panel via flex `order`.
   ══════════════════════════════════════════════════════════ */
.au-photo-block {
  position: relative;
  height: 168px;
  margin: 14px 14px 0;
  flex-shrink: 0;
}

.au-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
  /* Soft placeholder gradient shows the instant the shell paints —
     the real photo fades over it once loaded (.is-loaded below) so
     there's never an abrupt pop-in, even on a slow connection. */
  background: linear-gradient(135deg, rgba(var(--ac-rgb), .18), rgba(var(--ac-rgb), .05));
  /* Hover-zoom lives on the frame (not the img) so it never fights
     the img's own continuous Ken Burns animation on the same
     transform property — two independent, non-conflicting layers. */
  transition: transform .6s ease;
}
.au-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  opacity: 0;
  transition: opacity .6s ease;
}
.au-photo-frame img.is-loaded {
  opacity: 1;
  animation: auKenBurns 24s ease-in-out infinite;
}
@keyframes auKenBurns {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (hover: hover) and (min-width: 900px) {
  .au-photo-block:hover .au-photo-frame { transform: scale(1.012); }
}
.au-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--au-scrim);
  pointer-events: none;
}

/* floating glass cards spilling over the photo's edge */
.au-float {
  position: absolute;
  background: var(--au-float-bg);
  border: 1px solid var(--au-float-border);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--au-float-shadow);
  color: var(--au-float-text);
  will-change: transform;
  z-index: 2;
}

.au-float-task {
  top: 7%; left: 6%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: auFloatA 7s ease-in-out infinite;
}
.au-float-task .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grn); flex-shrink: 0; box-shadow: 0 0 0 3px var(--grn-bg); }
.au-float-task .txt { font-size: 13px; font-weight: 700; line-height: 1.3; }
.au-float-task .txt small { display: block; font-size: 11px; font-weight: 500; color: var(--au-float-sub); margin-top: 1px; }

.au-float-avatars {
  top: 44%; right: -14px;
  padding: 8px;
  display: flex;
  align-items: center;
  animation: auFloatB 8s ease-in-out infinite;
}
.au-avatar-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--au-float-bg);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.au-avatar-img:first-child { margin-left: 0; }
.au-avatar-img.a1 { background: linear-gradient(135deg, #7e3beb, #381d72); }
.au-avatar-img.a2 { background: linear-gradient(135deg, #8b7cf6, #6d4de6); }
.au-avatar-img.a3 { background: linear-gradient(135deg, #c4b5fd, #a78bfa); }
.au-avatar-img.more { background: rgba(120, 130, 150, .35); color: var(--au-float-text); font-size: 10px; }

.au-float-week {
  bottom: 30%; right: -10px;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: auFloatC 9s ease-in-out infinite reverse;
}
.au-week-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--au-float-sub);
}
.au-week-hd svg { width: 12.5px; height: 12.5px; color: var(--ac); flex-shrink: 0; }
/* Full 7-day week (Sun–Sat) — tighter gap than a 5-day strip needs
   so it still fits the same card footprint. */
.au-week-days { display: flex; gap: 6px; }
.au-week-day { text-align: center; font-size: 9.5px; color: var(--au-float-sub); font-weight: 600; }
.au-week-day .num {
  display: block; margin-top: 5px; font-size: 12.5px; font-weight: 700; color: var(--au-float-text);
  width: 21px; height: 21px; line-height: 21px; margin-left: auto; margin-right: auto;
  border-radius: 50%;
}
.au-week-day.weekend { color: var(--au-float-sub); opacity: .55; }
.au-week-day.today { color: var(--au-float-text); opacity: 1; }
.au-week-day.today .num { background: var(--accent-grad); color: #fff; }

.au-float-rank {
  bottom: -18px; left: 8%;
  padding: 14px 16px;
  min-width: 216px;
  animation: auFloatA 7.5s ease-in-out infinite reverse;
}
.au-float-rank .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.au-float-rank .hd .txt { font-size: 13px; font-weight: 700; }
.au-float-rank .hd .txt small { display: block; font-size: 11px; font-weight: 500; color: var(--au-float-sub); margin-top: 1px; }
.au-float-rank .hd svg { width: 15px; height: 15px; color: var(--amb); flex-shrink: 0; }

.au-rank-row { display: flex; align-items: center; gap: 9px; }
.au-rank-row + .au-rank-row { margin-top: 7px; }
.au-rank-badge {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.au-rank-badge.r1 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.au-rank-badge.r2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.au-rank-badge.r3 { background: linear-gradient(135deg, #b45309, #7c2d12); }
.au-rank-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--au-float-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.au-rank-bar {
  width: 46px; height: 5px;
  border-radius: 3px;
  background: rgba(120, 130, 150, .25);
  overflow: hidden;
  flex-shrink: 0;
}
.au-rank-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left center;
}
.au-rank-score { font-size: 11.5px; font-weight: 800; color: var(--grn); width: 32px; text-align: right; flex-shrink: 0; }

@keyframes auFloatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes auFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes auFloatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* On the compact mobile banner, only the task chip + avatar stack
   fit without crowding — the week strip and meeting card need the
   extra height/width the desktop column has. */
.au-photo-block .au-float-task { top: 10px; left: 10px; padding: 9px 13px; }
.au-photo-block .au-float-task .txt { font-size: 12px; }
.au-photo-block .au-float-task .txt small { font-size: 10px; }
.au-photo-block .au-float-avatars { top: auto; bottom: -14px; right: 12px; padding: 6px; }
.au-photo-block .au-float-rank,
.au-photo-block .au-float-week {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (min-width: 420px) {
  .au-form-panel { padding: 26px 28px; }
}

@media (min-width: 640px) {
  .au-page { padding: 28px; }
  .au-form-panel { padding: 30px 44px; }
}

/* --bp-shell: the two-column split needs real room for the photo
   panel + its spilling float cards, so it only kicks in here. */
@media (min-width: 900px) {
  .au-page { padding: 32px; }
  .au-shell { flex-direction: row; min-height: 720px; max-height: 880px; }
  .au-form-panel { width: 44%; padding: 36px 40px; order: 1; }

  .au-photo-block {
    order: 2;
    height: auto;
    width: 56%;
    margin: 0;
    padding: 18px 18px 18px 0;
  }
  /* restore the full desktop card set + spill positions */
  .au-photo-block .au-float-task { top: 7%; left: 6%; padding: 12px 16px; }
  .au-photo-block .au-float-task .txt { font-size: 13px; }
  .au-photo-block .au-float-task .txt small { font-size: 11px; }
  .au-photo-block .au-float-avatars { top: 44%; bottom: auto; right: -14px; padding: 8px; }
  /* Un-hide: each card restores its own natural display type, not a
     blanket `flex` — the rank list is a block stack of flex ROWS, only
     the week strip is itself a flex row of day columns. */
  .au-photo-block .au-float-rank { display: block; }
  .au-photo-block .au-float-week { display: flex; }
}

@media (min-width: 1080px) {
  .au-form-panel { padding: 44px 56px; }
  .au-heading { font-size: 38px; }
  .au-photo-block { padding: 22px 22px 22px 0; }
}

@media (min-width: 1240px) {
  .au-heading { font-size: 42px; }
}

/* ── Accessibility ────────────────────────────────────── */
.au-input:focus-visible, .au-forgot:focus-visible, .au-pw-toggle:focus-visible {
  /* outline: 2px solid var(--ac);
  outline-offset: 2px; */
  outline: none;
  outline-offset: 0px;
}

@media (prefers-reduced-motion: reduce) {
  .au-float { animation: none !important; }
  .au-photo-frame img.is-loaded { animation: none !important; }
  .au-photo-frame, .au-submit { transition: none !important; }
}

/* ── Success burst (see auth.js successBurst()) ──
   Fixed + body-appended rather than a child of .au-submit — the
   button has overflow:hidden (for its own hover/spotlight sweep),
   which would otherwise clip the dots the instant they leave its
   bounds. */
.au-burst-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
}

