/* Entrada e segurança da conta (visitante, sem casca). Só tokens --fx-*; nenhum valor solto de cor/letra. */
.fx-auth, .fx-auth *, .fx-auth *::before, .fx-auth *::after { box-sizing: border-box; }
.fx-auth { display: grid; place-items: center; align-content: center; min-height: 100vh; padding: var(--fx-8) var(--fx-4); }
.fx-auth__wrap { width: 100%; display: grid; gap: var(--fx-5); }
.fx-auth__wrap--sm { max-width: 408px; }
.fx-auth__wrap--md { max-width: 560px; }
.fx-auth__brand { display: inline-flex; align-items: center; gap: var(--fx-3); justify-self: start; color: var(--fx-text-strong); font-size: var(--fx-fs-16); line-height: var(--fx-lh-16); font-weight: 600; text-decoration: none; }
.fx-auth__brand img { width: 32px; height: 32px; border-radius: var(--fx-r-ctl); }
.fx-auth__card { background: var(--fx-surface); border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); padding: var(--fx-8); display: grid; gap: var(--fx-5); }
.fx-auth__head { display: grid; gap: var(--fx-2); }
.fx-auth__head p { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-fs-14); line-height: var(--fx-lh-14); }
.fx-auth h1 { margin: 0; }
.fx-auth__flash { display: grid; gap: var(--fx-2); }
.fx-auth__form { display: grid; gap: var(--fx-4); }
.fx-auth__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--fx-3); }
.fx-auth a:not(.fx-btn, .fx-auth__brand) { color: var(--fx-link); text-decoration: none; }
.fx-auth a:not(.fx-btn, .fx-auth__brand):hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-auth .fx-field__label { font-size: var(--fx-fs-13); color: var(--fx-text); }
.fx-auth .fx-input { height: var(--fx-ctl-h-lg); font-size: var(--fx-fs-16) !important; line-height: var(--fx-lh-16); padding: 0 var(--fx-4); }
.fx-auth .fx-btn--lg { width: 100%; }
.fx-auth__pw { position: relative; display: block; }
.fx-auth__pw .fx-input { padding-right: 52px; }
.fx-auth__eye { position: absolute; right: 0; top: 0; width: var(--fx-ctl-h-lg); height: var(--fx-ctl-h-lg); display: grid; place-items: center; border: 0; background: transparent; color: var(--fx-text-muted); cursor: pointer; border-radius: var(--fx-r-ctl); }
.fx-auth__eye:hover { color: var(--fx-text-strong); }
.fx-auth__eye svg, .fx-auth__eye i { width: 18px; height: 18px; }
.fx-auth__caps { margin: 0; color: var(--fx-warn); font-size: var(--fx-fs-12); line-height: var(--fx-lh-12); display: flex; align-items: center; gap: var(--fx-1); }
.fx-auth__foot { margin: 0; text-align: center; color: var(--fx-text-muted); font-size: var(--fx-fs-13); line-height: var(--fx-lh-13); }
.fx-auth__legal { margin: 0; text-align: center; color: var(--fx-text-muted); font-size: var(--fx-fs-12); line-height: var(--fx-lh-12); }
.fx-auth__link-btn { border: 0; background: none; padding: 0; color: var(--fx-link); font: inherit; cursor: pointer; text-align: left; }
.fx-auth__link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-auth__steps { display: grid; gap: var(--fx-5); list-style: none; margin: 0; padding: 0; counter-reset: passo; }
.fx-auth__steps > li { display: grid; gap: var(--fx-2); padding-left: var(--fx-10); position: relative; counter-increment: passo; }
.fx-auth__steps > li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--fx-border-strong); border-radius: 50%; color: var(--fx-text-strong); font-size: var(--fx-fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-auth__steps h2 { margin: 0; }
.fx-auth__steps p { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-fs-13); line-height: var(--fx-lh-13); }
.fx-auth__qr { width: 176px; height: 176px; padding: var(--fx-2); background: white; border-radius: var(--fx-r-ctl); }
.fx-auth__secret { display: flex; align-items: center; gap: var(--fx-2); padding: var(--fx-2) var(--fx-3); background: var(--fx-surface-2); border: 1px solid var(--fx-border); border-radius: var(--fx-r-ctl); }
.fx-auth__secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--fx-mono); font-size: var(--fx-fs-13); line-height: var(--fx-lh-13); color: var(--fx-text-strong); letter-spacing: .04em; }
.fx-auth__status { display: flex; align-items: center; gap: var(--fx-3); }
.fx-auth__actions { display: flex; flex-wrap: wrap; gap: var(--fx-2); }
.fx-auth__actions .fx-btn { flex: 1 1 auto; }
.fx-auth__actions--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
/* código de 6 dígitos em caixas (um input real por baixo: cola, preenche do SMS e funciona com leitor de tela) */
.fx-otp { position: relative; }
.fx-otp__boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--fx-2); }
.fx-otp__boxes span { height: 52px; display: grid; place-items: center; border: 1px solid var(--fx-border-field); border-radius: var(--fx-r-ctl); background: var(--fx-surface); font-family: var(--fx-mono); font-size: var(--fx-fs-24); line-height: var(--fx-lh-24); font-weight: 500; color: var(--fx-text-strong); font-variant-numeric: tabular-nums; }
.fx-otp__boxes span.is-active { border-color: var(--fx-focus); outline: 2px solid var(--fx-focus); outline-offset: -1px; }
.fx-otp > .fx-otp__input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 !important; border: 0 !important; background: transparent !important; color: transparent !important; caret-color: transparent; font-size: var(--fx-fs-16) !important; opacity: .01; cursor: text; }
.fx-otp.is-invalid .fx-otp__boxes span { border-color: var(--fx-danger); }
/* códigos de recuperação */
.fx-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--fx-2); list-style: none; margin: 0; padding: var(--fx-4); background: var(--fx-surface-2); border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); }
.fx-codes li { padding: var(--fx-2) var(--fx-3); font-family: var(--fx-mono); font-size: var(--fx-fs-14); line-height: var(--fx-lh-14); color: var(--fx-text-strong); letter-spacing: .04em; font-variant-numeric: tabular-nums; text-align: center; border-radius: var(--fx-r-ctl); background: var(--fx-surface); }
@media (max-width: 480px) {
  .fx-auth { padding-top: var(--fx-6); }
  .fx-auth__card { padding: var(--fx-5); }
  .fx-auth .fx-btn, .fx-auth__link-btn { min-height: 44px; }
  .fx-otp__boxes span { height: 48px; }
}
@media print {
  .fx-auth { padding: 0; display: block; }
  .fx-auth__card { border: 0; padding: 0; }
  .fx-auth__actions, .fx-auth__foot, .fx-auth__legal, .fx-auth__brand, .fx-skip, .fx-no-print { display: none !important; }
  html body.fx-app { background: white !important; color: black; }
  .fx-codes, .fx-codes li { background: white; border-color: gray; color: black; }
  .fx-auth h1 { color: black; }
}
