/* ==========================================================================
   Pantera auth screens (login, cadastro, esqueci a senha, nova senha)
   Loads after /assets/lp/tokens.css and reuses its brand tokens. Deliberately
   quieter than the landing page: no reveals, orbits, rays or glows. Motion is
   limited to focus, step changes, errors and the testimonial crossfade.
   Layout: split screen from 1024px (dark brand panel + light form panel);
   below that, a dark header and a white rounded-top sheet in normal flow.
   ========================================================================== */
:root {
  --au-ink: var(--lp-brand-black, #1a1a1a);
  --au-ink-2: #3a3f47;
  --au-muted: #5b6573;              /* 6.3:1 on white */
  --au-muted-2: #7c8590;            /* labels' helper icons only */
  --au-line: #dde2e8;
  --au-field: #f6f7f9;
  --au-paper: #ffffff;
  --au-gold: var(--lp-brand-gold, #f4c430);
  --au-gold-deep: var(--lp-brand-gold-deep, #e6b800);
  --au-ring: rgba(244, 196, 48, 0.32);
  --au-danger: #b91c1c;
  --au-danger-line: #f2c4c4;
  --au-danger-bg: #fdf1f1;
  --au-success: #0f6b41;
  --au-success-line: #bfe4d0;
  --au-success-bg: #ecf7f1;
  --au-warn: #8a5a00;
  --au-dark: #141414;
  --au-dark-fg: #f5f5f5;
  --au-dark-muted: #b3b3b3;         /* 9.6:1 on #141414 */
  --au-dark-line: rgba(255, 255, 255, 0.1);
  --au-radius-input: var(--lp-radius-sm, 0.75rem);
  --au-radius-sheet: var(--lp-radius, 1.5rem);
  --au-ease: var(--lp-ease-std, cubic-bezier(0.4, 0, 0.2, 1));
  --au-ease-out: var(--lp-ease-out, cubic-bezier(0, 0, 0.58, 1));
  --au-dur: 200ms;
  --au-font: var(--lp-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* --- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.au-body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--au-font); font-size: 0.9375rem; line-height: 1.5;
  color: var(--au-ink); background: var(--au-dark);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.au-body img { display: block; max-width: 100%; }
.au-body a { color: inherit; }
.au-ico { width: 1.125rem; height: 1.125rem; flex: none; display: inline-block; vertical-align: middle; }
.au-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* --- Layout ----------------------------------------------------------- */
.au-layout {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background-color: var(--au-dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* Brand panel: only the logo row on small screens */
.au-brand {
  position: relative; color: var(--au-dark-fg);
  padding: 1.25rem var(--lp-gutter, 1rem) 0.25rem;
}
.au-brand__logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; text-decoration: none; color: var(--au-dark-fg);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--lp-radius-full, 999px);
}
.au-brand__logo img { height: 2rem; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.au-brand__logo:focus-visible { outline: 2px solid var(--au-gold); outline-offset: 4px; }
.au-brand__body, .au-brand__foot, .au-brand .au-brand__mark { display: none; }

.au-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.au-topbar { display: none; }
.au-content { display: flex; flex-direction: column; flex: 1; width: 100%; }

.au-head { padding: 0.5rem var(--lp-gutter, 1rem) 1.75rem; color: var(--au-dark-fg); }
.au-head__inner, .au-sheet__inner { width: 100%; max-width: 34rem; margin: 0 auto; }
.au-title {
  margin: 0 0 0.5rem; font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.25rem); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.au-sub { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--au-dark-muted); max-width: 44ch; text-wrap: pretty; }

.au-sheet {
  flex: 1; background: var(--au-paper); color: var(--au-ink);
  border-radius: var(--au-radius-sheet) var(--au-radius-sheet) 0 0;
  padding: 1.75rem var(--lp-gutter, 1rem) calc(2rem + env(safe-area-inset-bottom, 0px));
}

/* Split layout from 1024px */
@media (min-width: 1024px) {
  .au-layout {
    display: grid; grid-template-columns: minmax(20rem, 42%) minmax(0, 1fr);
    background: var(--au-paper);
  }
  .au-brand {
    position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; gap: 2rem; overflow: hidden;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    background-color: var(--au-dark);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .au-brand::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(165deg, #000 15%, transparent 78%);
    mask-image: linear-gradient(165deg, #000 15%, transparent 78%);
  }
  .au-brand .au-brand__mark {
    display: block; position: absolute; right: -14%; bottom: -8%; width: 74%; max-width: 34rem;
    opacity: 0.07; filter: grayscale(1); pointer-events: none; user-select: none;
  }
  .au-brand__logo { position: relative; z-index: 1; align-self: flex-start; }
  .au-brand__logo img { height: 2.25rem; }
  .au-brand__body { display: block; position: relative; z-index: 1; margin-top: auto; }
  .au-brand__foot { display: block; position: relative; z-index: 1; margin: 0; font-size: 0.8125rem; color: var(--au-dark-muted); }

  .au-main { min-height: 100vh; min-height: 100dvh; }
  .au-switch { display: none; } /* desktop: the topbar link already offers it */
  .au-topbar {
    display: flex; justify-content: flex-end; align-items: center;
    padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) 0;
  }
  .au-content {
    flex: 1; justify-content: center; align-items: center;
    padding: 2rem clamp(1.5rem, 6vw, 5.5rem) 3rem;
  }
  .au-head { width: 100%; max-width: var(--au-form-w, 30rem); padding: 0 0 1.75rem; color: var(--au-ink); }
  .au-head__inner, .au-sheet__inner { max-width: none; margin: 0; }
  .au-sub { color: var(--au-muted); }
  .au-sheet { flex: 0 0 auto; width: 100%; max-width: var(--au-form-w, 30rem); padding: 0; border-radius: 0; background: transparent; }
  .au-layout--wide { --au-form-w: 36rem; }
}

/* --- Top bar link ----------------------------------------------------- */
.au-topbar__link {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.75rem; padding: 0 0.25rem;
  font-size: 0.9375rem; color: var(--au-muted); text-decoration: none; border-radius: var(--lp-radius-full, 999px);
}
.au-topbar__link strong { color: var(--au-ink); font-weight: 600; }
.au-topbar__link .au-ico { color: var(--au-gold-deep); width: 1rem; height: 1rem; transition: transform var(--au-dur) var(--au-ease); }
.au-topbar__link:hover strong { text-decoration: underline; text-decoration-color: var(--au-gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.au-topbar__link:hover .au-ico { transform: translateX(2px); }
.au-topbar__link:focus-visible { outline: 2px solid var(--au-gold-deep); outline-offset: 2px; }

/* --- Brand panel slider: testimonials (cadastro) / tips (login) ---------
   Slides stack in one grid cell, so the track always reserves the height of
   the tallest slide and nothing jumps between slides. Auto-advance runs on
   data-interval (3 s), pauses on hover / focus-within / hidden tab / the
   pause button, and never runs under prefers-reduced-motion. ------------- */
.au-slides { display: flex; flex-direction: column; gap: 1.5rem; max-width: 30rem; }
.au-slides__track { display: grid; }
.au-slide { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; gap: 1rem; opacity: 0; visibility: hidden; transition: opacity 400ms var(--au-ease), visibility 0s linear 400ms; }
.au-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.au-slide__stars { display: flex; gap: 0.2rem; color: var(--au-gold); }
.au-slide__stars .au-ico { width: 0.9rem; height: 0.9rem; }
.au-slide__tag { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--au-gold); font-size: 0.8125rem; font-weight: 600; }
.au-slide__tag .au-ico { width: 1rem; height: 1rem; }
.au-slide__quote { margin: 0; font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.375rem); line-height: 1.42; font-weight: 500; color: var(--au-dark-fg); text-wrap: pretty; letter-spacing: -0.005em; }
.au-slide--tip .au-slide__quote { font-size: clamp(1.0625rem, 0.9rem + 0.55vw, 1.25rem); }
.au-slide__who { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9375rem; }
.au-slide__who strong { font-weight: 600; }
.au-slide__who span { color: var(--au-dark-muted); font-size: 0.875rem; }
.au-slides__controls { display: flex; align-items: center; gap: 0.25rem; margin: -0.6rem 0; }
/* Dots share the row with the arrows and the pause button: each dot is 44px tall
   and flexes between 24px and 44px wide, so ten slides still fit the panel. */
.au-slides__dots { display: flex; flex: 0 1 auto; min-width: 0; gap: 0.3rem; }
.au-slides__dot { display: inline-flex; align-items: center; flex: 1 1 2.75rem; width: auto; min-width: 1.5rem; max-width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--lp-radius-full, 999px); }
.au-slides__dot::before { content: ''; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); transition: background-color var(--au-dur) var(--au-ease); }
.au-slides__dot:hover::before { background: rgba(255, 255, 255, 0.45); }
.au-slides__dot[aria-current="true"]::before { background: var(--au-gold); }
.au-slides__dot:focus-visible { outline: 2px solid var(--au-gold); outline-offset: 2px; }
.au-slides__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid transparent; color: var(--au-dark-muted);
  transition: color var(--au-dur) var(--au-ease), border-color var(--au-dur) var(--au-ease), background-color var(--au-dur) var(--au-ease);
}
.au-slides__btn:hover { color: var(--au-dark-fg); background: rgba(255, 255, 255, 0.06); }
.au-slides__btn:focus-visible { outline: 2px solid var(--au-gold); outline-offset: 2px; }
.au-slides__btn .au-ico { width: 1.1rem; height: 1.1rem; }
.au-slides__btn--toggle { margin-left: auto; border-color: rgba(255, 255, 255, 0.14); }
.au-slides__btn--toggle .au-ico { width: 0.9rem; height: 0.9rem; }
.au-slides__btn--toggle[aria-pressed="true"] .au-slides__ico-pause, .au-slides__btn--toggle:not([aria-pressed="true"]) .au-slides__ico-play { display: none; }
.au-slides__btn[hidden] { display: none; }

/* --- Recovery process (brand panel of the password screens) ------------ */
.au-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; max-width: 26rem; }
.au-steps__item { display: flex; gap: 1rem; align-items: flex-start; }
.au-steps__n {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%; font-size: 0.875rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22); color: var(--au-dark-muted);
}
.au-steps__item.is-current .au-steps__n { background: var(--au-gold); border-color: var(--au-gold); color: var(--lp-on-accent, #141414); }
.au-steps__item.is-done .au-steps__n { border-color: var(--au-gold); color: var(--au-gold); }
.au-steps__item.is-done .au-steps__n .au-ico { width: 0.9rem; height: 0.9rem; }
.au-steps__text { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.3rem; }
.au-steps__text strong { font-weight: 500; color: var(--au-dark-fg); }
.au-steps__text span { font-size: 0.875rem; color: var(--au-dark-muted); }
.au-steps__item.is-current .au-steps__text strong { font-weight: 600; }

/* --- Alerts (class names are hooks for the pages' inline JS) ----------- */
.alert {
  display: flex; align-items: flex-start; gap: 0.625rem; margin: 0 0 1.25rem;
  padding: 0.875rem 1rem; border-radius: var(--au-radius-input); border: 1px solid transparent;
  font-size: 0.9rem; line-height: 1.45;
}
.alert .au-ico { margin-top: 0.1rem; }
.alert-danger { background: var(--au-danger-bg); border-color: var(--au-danger-line); color: var(--au-danger); }
.alert-success { background: var(--au-success-bg); border-color: var(--au-success-line); color: var(--au-success); }

/* --- Form ------------------------------------------------------------ */
.au-form { display: flex; flex-direction: column; gap: 1.125rem; }
.au-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.125rem; }
@media (min-width: 640px) { .au-grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem; } }

.au-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.au-label { font-size: 0.8125rem; font-weight: 500; color: var(--au-ink); }
.au-box { position: relative; }
.au-box__ico { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--au-muted-2); pointer-events: none; transition: color var(--au-dur) var(--au-ease); }
.au-box:focus-within .au-box__ico { color: var(--au-ink); }
.au-input {
  width: 100%; height: 3rem; margin: 0; padding: 0 1rem 0 2.75rem;
  font: inherit; font-size: 1rem; color: var(--au-ink);
  background: var(--au-field); border: 1px solid var(--au-line); border-radius: var(--au-radius-input);
  transition: border-color var(--au-dur) var(--au-ease), background-color var(--au-dur) var(--au-ease), box-shadow var(--au-dur) var(--au-ease);
  appearance: none;
}
.au-input::placeholder { color: #8f98a5; }
.au-input:focus { outline: none; background: var(--au-paper); border-color: var(--au-gold-deep); box-shadow: 0 0 0 3px var(--au-ring); }
.au-input[aria-invalid="true"], .au-input[data-state="weak"], .au-input[data-state="mismatch"] { border-color: #dc2626; background: var(--au-paper); }
.au-input[aria-invalid="true"]:focus, .au-input[data-state="weak"]:focus, .au-input[data-state="mismatch"]:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); border-color: #dc2626; }
.au-input[data-state="medium"] { border-color: #d97706; background: var(--au-paper); }
.au-input[data-state="medium"]:focus { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); border-color: #d97706; }
.au-input[data-state="strong"], .au-input[data-state="match"] { border-color: #059669; background: var(--au-paper); }
.au-input[data-state="strong"]:focus, .au-input[data-state="match"]:focus { box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18); border-color: #059669; }
.au-box--toggle .au-input { padding-right: 3.25rem; }
.au-help { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--au-muted); }
.au-error { display: none; margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--au-danger); font-weight: 500; }
.au-error:not([style*="display: none"]):not([style*="display:none"]):not(:empty) { animation: au-fade var(--lp-dur-fast, 300ms) var(--au-ease-out); }

/* Show / hide password: a real button, 44px hit area */
.au-eye {
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--au-muted); cursor: pointer;
  transition: color var(--au-dur) var(--au-ease), background-color var(--au-dur) var(--au-ease);
}
.au-eye:hover { color: var(--au-ink); background: rgba(26, 26, 26, 0.05); }
.au-eye:focus-visible { outline: 2px solid var(--au-gold-deep); outline-offset: -2px; }
.au-eye .au-ico { width: 1.2rem; height: 1.2rem; }
.au-eye[aria-pressed="true"] .au-eye__show, .au-eye:not([aria-pressed="true"]) .au-eye__hide { display: none; }

/* Password strength (ids are hooks for the pages' inline JS) */
.au-strength { height: 4px; border-radius: 4px; background: #e6e9ee; overflow: hidden; margin-top: 0.15rem; }
.au-strength__bar { height: 100%; width: 0; border-radius: 4px; transition: width var(--lp-dur-fast, 300ms) var(--au-ease), background-color var(--lp-dur-fast, 300ms) var(--au-ease); }
.au-strength__text { margin: 0; font-size: 0.8125rem; color: var(--au-muted); text-align: right; }
.au-hint { margin: 0; font-size: 0.875rem; color: var(--au-warn); text-align: center; }

/* Checkbox */
.au-check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 2.75rem; padding: 0.55rem 0; cursor: pointer; font-size: 0.9rem; line-height: 1.45; color: var(--au-ink-2); }
.au-check__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.au-check__box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.25rem; height: 1.25rem; margin-top: 0.05rem; border-radius: 0.35rem;
  border: 1px solid #b8c0ca; background: var(--au-paper); color: transparent;
  transition: background-color var(--au-dur) var(--au-ease), border-color var(--au-dur) var(--au-ease), box-shadow var(--au-dur) var(--au-ease);
}
.au-check__box .au-ico { width: 0.8rem; height: 0.8rem; }
.au-check:hover .au-check__box { border-color: var(--au-ink); }
.au-check__input:checked + .au-check__box { background: var(--au-ink); border-color: var(--au-ink); color: var(--au-paper); }
.au-check__input:focus-visible + .au-check__box { border-color: var(--au-gold-deep); box-shadow: 0 0 0 3px var(--au-ring); }
.au-check a { color: var(--au-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--au-gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.au-check a:hover { text-decoration-color: var(--au-ink); }

/* Rows and inline links */
.au-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem; }
.au-link { color: var(--au-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--au-gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.2em; border-radius: 3px; }
.au-link:hover { text-decoration-color: var(--au-ink); }
.au-link:focus-visible { outline: 2px solid var(--au-gold-deep); outline-offset: 3px; }
.au-link--quiet { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.au-switch { margin: 1.5rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--au-muted); }
.au-switch a { display: inline-block; padding: 0.25rem 0; }
.au-note { margin: 0; font-size: 0.875rem; line-height: 1.45; text-align: center; color: var(--au-muted); }
.au-note--danger { color: var(--au-danger); font-weight: 500; }
.au-note--ok { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; border-radius: var(--lp-radius-full, 999px); background: var(--au-success-bg); border: 1px solid var(--au-success-line); color: var(--au-success); font-weight: 500; }

/* Buttons */
.au-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; min-height: 3.25rem; margin: 0; padding: 0 1.5rem;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1; letter-spacing: 0.005em;
  border: 1px solid transparent; border-radius: var(--lp-radius-full, 999px); cursor: pointer;
  transition: background-color var(--au-dur) var(--au-ease), border-color var(--au-dur) var(--au-ease), color var(--au-dur) var(--au-ease), transform 150ms var(--au-ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.au-btn:focus-visible { outline: 2px solid var(--au-gold-deep); outline-offset: 3px; }
.au-btn:active:not(:disabled) { transform: scale(0.985); }
.au-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.au-btn--primary { background: var(--au-ink); color: var(--au-paper); }
.au-btn--primary:hover:not(:disabled) { background: #000; }
.au-btn--primary .au-btn__chev { color: var(--au-gold); transition: transform var(--au-dur) var(--au-ease); }
.au-btn--primary:hover:not(:disabled) .au-btn__chev { transform: translateX(2px); }
.au-btn--secondary { background: var(--au-paper); color: var(--au-ink); border-color: var(--au-line); }
.au-btn--secondary:hover:not(:disabled) { background: var(--au-field); border-color: #c5ccd5; }
.au-btn__chev { width: 1.1rem; height: 1.1rem; }
.au-btn.is-pending .au-btn__chev, .au-btn.is-pending .au-btn__ico { display: none; }
.au-btn.is-pending::after {
  content: ''; width: 1rem; height: 1rem; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: au-spin 800ms linear infinite;
}
.au-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.25rem; }
.au-actions--split { flex-direction: row; }
.au-actions--split .au-btn--secondary { flex: 0 0 auto; width: auto; padding-inline: 1.25rem; }
.au-actions--split .au-btn--primary { flex: 1 1 auto; }

/* Step progress (cadastro) */
.au-progress { display: flex; flex-direction: column; gap: 0.6rem; border-radius: 0.5rem; }
.au-progress:focus { outline: none; }
.au-progress:focus-visible { outline: 2px solid var(--au-gold-deep); outline-offset: 6px; }
.au-progress__label { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.875rem; color: var(--au-muted); }
.au-progress__label strong { color: var(--au-ink); font-weight: 600; }
.au-progress__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.au-progress__seg { height: 4px; border-radius: 4px; background: #e6e9ee; transition: background-color var(--lp-dur-fast, 300ms) var(--au-ease); }
.au-progress__seg[data-state="current"], .au-progress__seg[data-state="done"] { background: var(--au-gold); }

/* Step panels: a subtle entrance when the step changes */
.au-step { display: flex; flex-direction: column; gap: 1.125rem; }
.au-enter { animation: au-step-in 260ms var(--au-ease-out); }

/* Turnstile: flexible width, reserved height so the form does not jump */
.turnstile-container { display: flex; justify-content: center; align-items: center; min-height: 65px; margin: 0; }
.turnstile-container .cf-turnstile { width: 100%; }

/* Shake for the password hint (class name is a hook for cadastro's JS) */
.shake { animation: shake 400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

@keyframes au-spin { to { transform: rotate(360deg); } }
@keyframes au-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes au-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  0% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .au-slide { transition: none; }
  .au-enter, .shake, .au-error { animation: none; }
  .au-btn.is-pending::after { animation-duration: 1.6s; }
  .au-btn, .au-input, .au-topbar__link .au-ico, .au-btn--primary .au-btn__chev { transition: none; }
}
