/* =====================================================================
   Alliancar Clube - autenticacao (credencial do clube)
   Escopo: body.auth-body. Nao altera nenhuma outra tela.
   Conceito: pagina editorial em papel/tinta + credencial fisica do clube.
   ===================================================================== */

body.auth-body {
  --auth-bg: #f2eee4;
  --auth-text: #0b1a26;
  --auth-muted: #5b6874;
  --auth-muted-2: #6b7883;
  --auth-line: rgba(11, 26, 38, .14);
  --auth-grid: rgba(11, 26, 38, .035);
  --auth-green: #0b7a4f;
  --auth-blue: #0d6fb5;
  --auth-accent: #0b7a52;

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--auth-text);
  background:
    radial-gradient(52rem 30rem at 4% 0%, rgba(17, 157, 99, .10), transparent 70%),
    radial-gradient(46rem 26rem at 54% -6%, rgba(13, 127, 209, .07), transparent 70%),
    var(--auth-bg);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] body.auth-body {
  --auth-bg: #05121d;
  --auth-text: #f2efe6;
  --auth-muted: #9babb6;
  --auth-muted-2: #8a9ca8;
  --auth-line: rgba(242, 239, 230, .13);
  --auth-grid: rgba(242, 239, 230, .045);
  --auth-green: #4fe0a0;
  --auth-blue: #3aa7f4;
  --auth-accent: #6fe6ae;

  background:
    radial-gradient(52rem 30rem at 2% -2%, rgba(17, 157, 99, .17), transparent 70%),
    radial-gradient(48rem 28rem at 62% -8%, rgba(42, 168, 242, .15), transparent 70%),
    var(--auth-bg);
}

body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--auth-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--auth-grid) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(78% 66% at 50% 40%, #000 0%, transparent 88%);
  mask-image: radial-gradient(78% 66% at 50% 40%, #000 0%, transparent 88%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Pular para o formulario */
.auth-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 3px;
  background: #072a44;
  color: #fffdf7;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 36px -20px rgba(4, 18, 31, .7);
  transform: translate(-50%, -180%);
  transition: transform .2s cubic-bezier(.22, .8, .28, 1);
}
.auth-skip:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--auth-green);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   1. Barra superior
   ------------------------------------------------------------------ */
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) 0;
}

.auth-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--auth-text);
  text-decoration: none;
}
.auth-brandmark__logo {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.auth-brandmark__text { display: grid; gap: 2px; min-width: 0; line-height: 1.1; }
.auth-brandmark__text strong {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.auth-brandmark__text small {
  overflow: hidden;
  max-width: 300px;
  color: var(--auth-muted-2);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-topacts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.auth-backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  color: var(--auth-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .15s ease;
}
.auth-backlink:hover { color: var(--auth-text); }
.auth-backlink:focus-visible {
  outline: 2px solid var(--auth-green);
  outline-offset: 3px;
}
.auth-backlink .ico { flex: 0 0 auto; }
.auth-backlink__short { display: none; }

.auth-themetoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.auth-themetoggle:hover {
  border-color: var(--auth-muted);
  background: color-mix(in srgb, var(--auth-text) 5%, transparent);
  color: var(--auth-text);
}
.auth-themetoggle:focus-visible {
  outline: 2px solid var(--auth-green);
  outline-offset: 2px;
}
.auth-themetoggle span { display: inline-flex; }
.auth-themetoggle .theme-moon { display: none; }
html[data-theme="dark"] .auth-themetoggle .theme-moon { display: inline-flex; }
html[data-theme="dark"] .auth-themetoggle .theme-sun { display: none; }

/* ---------------------------------------------------------------------
   2. Palco editorial
   ------------------------------------------------------------------ */
.auth-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 72px) clamp(16px, 4vw, 40px);
}

/* Anel da marca, quebrado como no logo, atras do texto */
.auth-orbit {
  position: absolute;
  top: 46%;
  left: -300px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  background: conic-gradient(from 200deg,
    var(--auth-green) 0deg,
    var(--auth-blue) 100deg,
    transparent 118deg,
    transparent 242deg,
    var(--auth-blue) 300deg,
    var(--auth-green) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 68.4%, #000 68.9% 70%, transparent 70.5%);
  mask: radial-gradient(circle, transparent 0 68.4%, #000 68.9% 70%, transparent 70.5%);
  opacity: .38;
  filter: blur(.3px);
}
html[data-theme="dark"] .auth-orbit { opacity: .5; }

.auth-brief {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.auth-kicker__rule {
  flex: 0 0 28px;
  width: 28px;
  height: 1px;
  background: var(--auth-green);
}

.auth-statement {
  margin: 22px 0 0;
  color: var(--auth-text);
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.auth-statement em {
  display: block;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 1.06em;
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--auth-accent);
}

.auth-lead {
  max-width: 48ch;
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--auth-line);
}
.auth-fact { min-width: 0; }
.auth-fact dt {
  color: var(--auth-muted-2);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
}
.auth-fact dd { display: grid; gap: 2px; margin: 5px 0 0; }
.auth-fact strong {
  color: var(--auth-text);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .005em;
}
.auth-fact span {
  color: var(--auth-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------
   3. Credencial (o formulario vive dentro dela)
   ------------------------------------------------------------------ */
.auth-access {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 408px;
  justify-self: end;
}

.auth-pass {
  /* A credencial e' sempre papel: nao inverte com o tema da pagina. */
  --p-paper: #fffdf7;
  --p-ink: #0b1a26;
  --p-muted: #5b6874;
  --p-muted-2: #6e7a85;
  --p-line: rgba(11, 26, 38, .16);
  --p-line-strong: rgba(11, 26, 38, .32);
  --p-navy: #072a44;
  --p-navy-2: #0b3a5c;
  --p-green: #0c7a4f;
  --p-red: #a82a26;
  --p-red-bg: #fdecea;
  --p-red-line: #e7b3af;
  --p-ok: #0f7a4e;
  --p-ok-bg: #e8f6ee;
  --p-ok-line: #b5e3ca;
  --p-info: #1d4ed8;
  --p-info-bg: #eef3ff;
  --p-info-line: #c9d8fb;

  position: relative;
  width: 100%;
  color: var(--p-ink);
  color-scheme: light;
  --stub-h: 56px;
  background: var(--p-paper);
  border: 1px solid rgba(11, 26, 38, .16);
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 36px 70px -44px rgba(11, 26, 38, .62);
}
.auth-pass:focus { outline: none; }

html[data-theme="dark"] .auth-pass {
  border-color: rgba(244, 241, 232, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 42px 90px -46px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .03);
}

/* Faixa navy da credencial */
.auth-pass__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(152deg, #0a2b47 0%, #071f33 56%, #051725 100%);
  color: #f4f1e8;
}
.auth-pass__headbg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 12%, #000 92%);
  mask-image: linear-gradient(100deg, transparent 12%, #000 92%);
}
.auth-pass__headbg::before,
.auth-pass__headbg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.auth-pass__headbg::before {
  top: -66px;
  right: -44px;
  width: 196px;
  height: 196px;
  border: 1px solid rgba(244, 241, 232, .15);
}
.auth-pass__headbg::after {
  top: -34px;
  right: -12px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(60, 224, 154, .22);
}

.auth-pass__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.auth-pass__brand img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.auth-pass__brand > span { display: grid; gap: 2px; min-width: 0; line-height: 1.1; }
.auth-pass__brand strong {
  overflow: hidden;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-pass__brand small {
  overflow: hidden;
  color: rgba(244, 241, 232, .55);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Monograma gravado (detalhe de credencial) */
.auth-pass__mono {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 22px;
  border: 1px solid rgba(244, 241, 232, .28);
  border-radius: 2px;
  color: rgba(244, 241, 232, .68);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
}

/* Corpo */
.auth-pass__body { padding: 22px 22px 20px; }

/* Picote + taloes */
.auth-pass__cuts {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 14px;
  pointer-events: none;
}
.auth-pass__cuts i {
  position: absolute;
  top: calc(100% - var(--stub-h) - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--auth-bg);
}
.auth-pass__cuts i:first-child { left: -9px; }
.auth-pass__cuts i:last-child { right: -9px; }

.auth-pass__stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--stub-h);
  padding: 0 22px;
  border-top: 1px dashed rgba(11, 26, 38, .26);
}

.auth-stubmeta { display: grid; gap: 2px; line-height: 1.2; }
.auth-stubmeta small {
  color: var(--p-muted-2);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-stubmeta strong {
  color: var(--p-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-stubright { display: grid; justify-items: end; gap: 5px; }
.auth-barcode {
  display: block;
  width: 64px;
  height: 20px;
  opacity: .55;
  background:
    repeating-linear-gradient(90deg,
      var(--p-ink) 0 1px, transparent 1px 3px,
      var(--p-ink) 3px 5px, transparent 5px 6px,
      var(--p-ink) 6px 7px, transparent 7px 10px),
    repeating-linear-gradient(90deg,
      transparent 0 2px, var(--p-ink) 2px 3px, transparent 3px 6px);
}
.auth-stubcode {
  color: var(--p-muted-2);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 7.5px;
  letter-spacing: .18em;
}

/* ---------------------------------------------------------------------
   4. Conteudo e formulario
   ------------------------------------------------------------------ */
.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--p-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-eyebrow::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--p-green);
}

.auth-title {
  margin: 0;
  color: var(--p-ink);
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.auth-sub {
  max-width: 36ch;
  margin: 7px 0 18px;
  color: var(--p-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Campos escritos como em um documento: rotulo numerado + linha */
.auth-pass .auth-form { margin-top: 2px; }
.auth-pass .field { margin-bottom: 15px; }
.auth-pass .field-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 1px;
}
.auth-pass .field > label,
.auth-pass .field-line > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--p-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .15s ease;
}
.auth-field__n {
  color: var(--p-muted-2);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .15s ease;
}
.auth-pass .field:focus-within > label,
.auth-pass .field:focus-within .field-line > label { color: var(--p-ink); }
.auth-pass .field:focus-within .auth-field__n { color: var(--p-green); }

.auth-pass .field-link {
  color: var(--p-green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth-pass .field-link:hover { text-decoration: underline; }

.auth-pass .input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1.5px solid var(--p-line);
  transition: border-color .18s ease;
}
.auth-pass .input-group:focus-within { border-bottom-color: var(--p-navy); }
.auth-pass .input-group > .ico {
  position: absolute;
  left: 0;
  color: var(--p-muted-2);
  pointer-events: none;
}
.auth-pass .input {
  width: 100%;
  min-height: 42px;
  padding: 9px 32px 8px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--p-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.auth-pass .input::placeholder { color: #9aa3ab; font-weight: 400; }
.auth-pass .input:hover { border: 0; }
.auth-pass .input:focus {
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
}
.auth-pass .input:-webkit-autofill {
  -webkit-text-fill-color: var(--p-ink);
  box-shadow: 0 0 0 100px var(--p-paper) inset;
}
.auth-pass .pass-toggle {
  position: absolute;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--p-muted-2);
  cursor: pointer;
  transition: color .14s ease, background .14s ease;
}
.auth-pass .pass-toggle:hover { background: rgba(11, 26, 38, .05); color: var(--p-ink); }
.auth-pass .pass-toggle:focus-visible {
  outline: 2px solid var(--p-navy);
  outline-offset: 1px;
  color: var(--p-ink);
}
.auth-pass .field .error {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--p-red);
  font-size: 10.5px;
  font-weight: 600;
}
.auth-pass .field.has-error > label,
.auth-pass .field.has-error .field-line > label,
.auth-pass .field.has-error .auth-field__n { color: var(--p-red); }
.auth-pass .field.has-error .input-group { border-bottom-color: var(--p-red); }
.auth-pass .field.has-error .input-group:focus-within { border-bottom-color: var(--p-red); }

/* Manter conectado */
.auth-pass .auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 5px 0 17px;
  color: var(--p-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.auth-pass .auth-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--p-navy);
  cursor: pointer;
}
.auth-pass .auth-remember:hover { color: var(--p-ink); }

/* Botao: barra navy com fio verde, sem gradiente */
.auth-pass .btn.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  background: var(--p-navy);
  box-shadow:
    inset 3px 0 0 var(--p-green),
    0 14px 26px -18px rgba(7, 42, 68, .9);
  color: #f7f4ec;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .1s ease;
}
.auth-pass .btn.auth-submit:hover {
  background: var(--p-navy-2);
  box-shadow:
    inset 4px 0 0 var(--p-green),
    0 16px 30px -16px rgba(7, 42, 68, .95);
  color: #f7f4ec;
}
.auth-pass .btn.auth-submit:active { transform: translateY(1px); }
.auth-pass .btn.auth-submit:focus-visible {
  outline: 2px solid var(--p-navy);
  outline-offset: 2px;
  box-shadow: inset 3px 0 0 var(--p-green);
}
.auth-pass .btn.auth-submit .ico { color: #7fe0b0; }

.auth-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  color: var(--p-muted-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
}
.auth-secure-note .ico { flex: 0 0 auto; color: var(--p-green); }

/* Outros acessos: linha de texto, nao cartoes */
.auth-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--p-line);
  color: var(--p-muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.auth-switch__label { margin-right: auto; color: var(--p-muted-2); }
.auth-switch a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid transparent;
  color: var(--p-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.auth-switch a:hover { border-bottom-color: var(--p-green); color: var(--p-green); }
.auth-switch a:focus-visible { outline: 2px solid var(--p-navy); outline-offset: 2px; }
.auth-switch a .ico { color: var(--p-muted-2); }
.auth-switch a:hover .ico { color: var(--p-green); }

/* ---------------------------------------------------------------------
   5. Mensagens e telas secundarias (recuperar senha, aparencia)
   ------------------------------------------------------------------ */
.auth-pass .flash {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 15px;
  padding: 9px 11px;
  border: 1px solid var(--p-line);
  border-left-width: 3px;
  border-radius: 3px;
  background: #f6f3eb;
  color: var(--p-ink);
  font-size: 10.5px;
  line-height: 1.5;
}
.auth-pass .flash .ico { flex: 0 0 auto; margin-top: -1px; }
.auth-pass .flash.error {
  border-color: var(--p-red-line);
  border-left-color: var(--p-red);
  background: var(--p-red-bg);
  color: var(--p-red);
}
.auth-pass .flash.success {
  border-color: var(--p-ok-line);
  border-left-color: var(--p-ok);
  background: var(--p-ok-bg);
  color: var(--p-ok);
}
.auth-pass .flash.info {
  border-color: var(--p-info-line);
  border-left-color: var(--p-info);
  background: var(--p-info-bg);
  color: var(--p-info);
}

.auth-pass .auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--p-line);
  color: var(--p-muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-pass .auth-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--p-ink);
  text-decoration: none;
}
.auth-pass .auth-footer a:hover { color: var(--p-green); }
.auth-pass .auth-footer a .ico { color: var(--p-muted-2); }
.auth-pass .auth-footer a:hover .ico { color: var(--p-green); }

.auth-pass .auth-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--p-muted);
  font-size: 10.5px;
  line-height: 1.55;
}
.auth-pass .auth-note .ico { flex: 0 0 auto; margin-top: 1px; color: var(--p-muted-2); }

/* Aparencia do sistema */
.auth-pass .auth-opts { display: grid; gap: 8px; margin: 3px 0 0; }
.auth-pass .auth-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  background: #f8f5ee;
  color: var(--p-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.auth-pass .auth-opt:hover { border-color: var(--p-muted); background: var(--p-paper); }
.auth-pass .auth-opt.is-active {
  border-color: var(--p-navy);
  background: var(--p-paper);
  box-shadow: inset 3px 0 0 var(--p-green);
}
.auth-pass .auth-opt:focus-visible { outline: 2px solid var(--p-navy); outline-offset: 1px; }
.auth-pass .auth-opt-ic {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: #f1ede3;
  color: var(--p-navy);
}
.auth-pass .auth-opt.is-active .auth-opt-ic { background: var(--p-navy); color: #f4f1e8; }
.auth-pass .auth-opt-txt { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.auth-pass .auth-opt-txt strong { font-size: 11.5px; font-weight: 650; }
.auth-pass .auth-opt-txt small { color: var(--p-muted); font-size: 10px; }
.auth-pass .auth-opt-check { margin-left: auto; color: var(--p-green); opacity: 0; }
.auth-pass .auth-opt.is-active .auth-opt-check { opacity: 1; }

.auth-help {
  margin: 12px 0 0;
  color: var(--auth-muted);
  font-size: 10.5px;
  letter-spacing: .02em;
  text-align: center;
}
.auth-help a { color: var(--auth-text); font-weight: 650; }

/* ---------------------------------------------------------------------
   6. Rodape editorial
   ------------------------------------------------------------------ */
.auth-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 40px) 20px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted-2);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-bottom__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.auth-bottom__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--auth-muted);
}
.auth-bottom__secure .ico { color: var(--auth-green); }

/* ---------------------------------------------------------------------
   7. Responsivo
   ------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .auth-stage { grid-template-columns: minmax(0, 1fr) 380px; gap: 46px; }
  .auth-statement { font-size: clamp(36px, 4.4vw, 54px); }
  .auth-facts { gap: 14px; }
  .auth-switch__label { display: none; }
}

@media (max-width: 999px) {
  .auth-stage {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    gap: 26px;
    padding-top: 26px;
  }
  .auth-brief { width: 100%; max-width: 460px; }
  .auth-statement { margin-top: 16px; font-size: clamp(30px, 6vw, 40px); }
  .auth-lead,
  .auth-facts { display: none; }
  .auth-orbit { display: none; }
  .auth-access { max-width: 440px; justify-self: center; }
  .auth-top { padding-top: 16px; }
}

@media (max-width: 640px) {
  .auth-brandmark__logo { flex-basis: 26px; width: 26px; height: 26px; }
  .auth-brandmark__text strong { font-size: 13px; }
  .auth-brandmark__text small { display: none; }
  .auth-backlink__long { display: none; }
  .auth-backlink__short { display: inline; }
  .auth-themetoggle { width: 32px; height: 32px; }

  .auth-stage { gap: 20px; padding: 22px 14px 26px; }
  .auth-brief,
  .auth-access { max-width: 430px; }
  .auth-kicker { font-size: 8px; }
  .auth-statement { font-size: clamp(27px, 8vw, 34px); }

  .auth-pass__head { padding: 15px 17px; }
  .auth-pass__body { padding: 19px 17px 17px; }
  .auth-pass { --stub-h: 52px; }
  .auth-pass__stub { padding: 0 17px; }
  .auth-title { font-size: 21px; }

  .auth-bottom {
    justify-content: space-between;
    padding: 14px 16px 18px;
    text-align: center;
  }
  .auth-bottom__dot,
  .auth-bottom__slogan { display: none; }
  .auth-bottom__secure { margin-left: auto; justify-content: center; }
  .auth-switch__label { display: none; }
}

@media (max-width: 380px) {
  .auth-pass__brand small { display: none; }
  .auth-switch__label { width: 100%; margin-right: 0; }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .auth-stage { padding-block: 12px; }
  .auth-pass__head { padding: 14px 18px; }
  .auth-pass__body { padding: 18px 20px 12px; }
  .auth-sub { margin-bottom: 11px; }
  .auth-pass .field { margin-bottom: 12px; }
  .auth-pass .auth-remember { margin-bottom: 11px; }
  .auth-secure-note { margin-top: 8px; }
  .auth-switch { margin-top: 12px; padding-top: 10px; }
  .auth-facts { margin-top: 26px; }
  .auth-statement { font-size: clamp(34px, 4vw, 54px); }
  .auth-lead { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-skip,
  .auth-themetoggle,
  .auth-backlink,
  .auth-pass .auth-submit,
  .auth-pass .input-group,
  .auth-pass .auth-field__n,
  .auth-pass .field > label,
  .auth-pass .field-line > label { transition: none; }
}






