:root {
  --ff-bg: #ffffff;
  --ff-header-bg: #ffffff;
  --ff-header-border: #dce3e8;
  --ff-card-bg: #f7f9fa;
  --ff-card-border: #e3eaf0;
  --ff-card-shadow: 0 8px 24px rgba(10, 37, 64, 0.07);
  --ff-input-bg: #e2e8ec;
  --ff-input-border: transparent;
  --ff-label: #4b6076;
  --ff-text: #0a2540;
  --ff-text-muted: #364c62;
  --ff-link: #0a2540;
  --ff-gradient-start: #0a2540;
  --ff-gradient-end: #00d4ff;
  --ff-warning-bg: #fff5e6;
  --ff-warning-text: #754601;
  --ff-warning-icon: #d17d02;
  --ff-error: #c82d25;
  --ff-focus-ring: rgba(10, 37, 64, 0.25);
  --ff-social-border: #dadce0;
  --ff-social-bg: #ffffff;
  --ff-social-hover-bg: #f4f7fa;
  --ff-social-text: #1f3245;
  --ff-divider: #dce3e8;
}

[data-ff-theme="dark"] {
  --ff-bg: #061829;
  --ff-header-bg: #061829;
  --ff-header-border: #27445f;
  --ff-card-bg: rgba(5, 17, 29, 0.72);
  --ff-card-border: rgba(210, 221, 233, 0.12);
  --ff-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --ff-input-bg: #24384c;
  --ff-input-border: rgba(210, 221, 233, 0.14);
  --ff-label: #a9bccd;
  --ff-text: #ffffff;
  --ff-text-muted: #d2dde9;
  --ff-link: #ffffff;
  --ff-gradient-start: #0a2540;
  --ff-gradient-end: #00d4ff;
  --ff-error: #ff8e86;
  --ff-focus-ring: rgba(0, 212, 255, 0.28);
  --ff-social-border: rgba(210, 221, 233, 0.24);
  --ff-social-bg: #ffffff;
  --ff-social-hover-bg: #f4f7fa;
  --ff-social-text: #1f3245;
  --ff-divider: rgba(210, 221, 233, 0.18);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ff-text);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ff-bg);
}

.pf-v5-c-login {
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.pf-v5-c-login__container,
.pf-v5-c-login__main,
.pf-v5-c-login__main-body {
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.pf-v5-c-login__container {
  display: block !important;
}

#kc-content,
#kc-content-wrapper,
#kc-form-wrapper,
#kc-form,
.login-pf-page,
.login-pf-page .card-pf {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.pf-v5-c-login__main-header,
.pf-v5-c-login__main-footer,
#kc-page-title,
#kc-header,
#kc-header-wrapper,
.kcHeaderWrapperClass,
#kc-info,
#kc-form-options,
/* Passo de senha do identity-first: o template pai (keycloak.v2) renderiza o e-mail
   tentado + "reset" em #kc-username; login.ftl mostra a própria linha (.ff-identity). */
#kc-username,
#kc-attempted-username {
  display: none !important;
}

html.login-pf,
html.login-pf body,
#keycloak-bg {
  background: var(--ff-bg) !important;
}

.ff-login {
  min-height: 100dvh;
  position: relative;
  width: 100%;
  padding-top: 81px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ff-login::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  inset: 81px 0 auto;
  height: calc(100dvh - 81px);
  background-color: var(--ff-bg);
  background-image: url("./ff-waves-combined.png");
  /* cover garante cobertura vertical: com "100% auto" a arte terminava antes do
     fim da viewport em telas altas e criava uma faixa de emenda. */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

[data-ff-theme="dark"] .ff-login::before {
  background-image: url("./ff-waves-combined-dark.png");
  background-color: var(--ff-bg);
  background-position: center top;
  filter: none;
  opacity: 1;
}

.ff-topbar,
.ff-main {
  position: relative;
  z-index: 1;
}

.ff-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 81px;
  background: var(--ff-header-bg);
  border-bottom: 1px solid var(--ff-header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 30;
}

.ff-brand {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
}

.ff-mode-btn {
  background: none;
  border: none;
  color: var(--ff-text);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.ff-mode-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ff-mode-btn:hover {
  background: rgba(10, 37, 64, 0.08);
}

[data-ff-theme="dark"] .ff-mode-btn:hover {
  background: rgba(231, 238, 246, 0.14);
}

.ff-icon-sun {
  display: none;
}

[data-ff-theme="dark"] .ff-icon-moon {
  display: none;
}

[data-ff-theme="dark"] .ff-icon-sun {
  display: inline-flex;
}

.ff-main {
  flex: 1;
  width: 100%;
  margin-left: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Figma TV-27: 48px below header (content y=129, header=81) */
  padding: 48px 16px 16px;
  box-sizing: border-box;
  min-height: 0;
}

.ff-auth-shell {
  width: 100%;
  max-width: 384px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.ff-copy {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ff-page-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text);
}

.ff-page-subtitle {
  margin: 0;
  max-width: 384px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text-muted);
}

.ff-snackbar {
  width: min(100%, 384px);
  background: var(--ff-warning-bg);
  color: var(--ff-warning-text);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.ff-snackbar[hidden] {
  display: none;
}

[data-ff-theme="dark"] .ff-snackbar {
  background: #fff5e6;
  color: #754601;
}

.ff-snackbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--ff-warning-icon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px;
  box-sizing: border-box;
}

[data-ff-theme="dark"] .ff-snackbar-icon {
  background: #d17d02;
  color: #fff;
}

.ff-snackbar-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.ff-snackbar-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ff-snackbar-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ff-snackbar-text strong {
  font-weight: 700;
}

.ff-card {
  width: min(100%, 384px);
  background: var(--ff-card-bg);
  border: 1px solid var(--ff-card-border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--ff-card-shadow);
  box-sizing: border-box;
}

.ff-card-form {
  width: min(100%, 384px);
}

.ff-form {
  width: 100%;
}

.ff-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#fp-login-card .ff-stack {
  gap: 20px;
}

.ff-fields,
.ff-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ff-form-header {
  text-align: center;
}

.ff-form-header h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text);
}

.ff-form-header p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text-muted);
}

.ff-title {
  margin: 0;
  text-align: center;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text);
}

.ff-field {
  width: 100%;
}

.ff-field > label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text);
}

.ff-field .ff-error {
  margin-top: 6px;
}

/* Campo "filled": rótulo dentro da caixa (topo), ícone e input alinhados abaixo.
   Evita o rótulo flutuante colidindo com o campo anterior. */
.ff-input {
  position: relative;
  min-height: 58px;
  border-radius: 10px;
  background: var(--ff-input-bg);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 14px 0 0;
  box-sizing: border-box;
  border: 1px solid var(--ff-input-border);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.ff-input > .ff-input-label {
  position: absolute;
  top: 7px;
  left: 48px;
  right: 14px;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-label);
  z-index: 1;
  pointer-events: none;
}

.ff-input:focus-within {
  border-color: rgba(10, 37, 64, 0.45);
  box-shadow: 0 0 0 3px var(--ff-focus-ring);
}

[data-ff-theme="dark"] .ff-input:focus-within {
  border-color: rgba(0, 212, 255, 0.55);
}

.ff-icon {
  color: var(--ff-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 38px;
  flex-shrink: 0;
}

.ff-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ff-input input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ff-text);
  font-size: 15px;
  line-height: 1.4;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  padding: 0;
  box-sizing: border-box;
}

.ff-input input::placeholder {
  color: rgba(10, 37, 64, 0.55);
}

[data-ff-theme="dark"] .ff-input input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Autofill do Chrome pinta fundo branco/amarelo e quebra o tema escuro. */
.ff-input input:-webkit-autofill,
.ff-input input:-webkit-autofill:hover,
.ff-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ff-text);
  -webkit-box-shadow: 0 0 0 1000px var(--ff-input-bg) inset;
  caret-color: var(--ff-text);
  transition: background-color 9999s ease-out 0s;
}

.ff-pass-toggle {
  border: none;
  background: none;
  padding: 0;
  color: var(--ff-label);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 38px;
  border-radius: 8px;
  transition: color 120ms ease;
}

.ff-pass-toggle:hover {
  color: var(--ff-text);
}

.ff-pass-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ff-pass-toggle[aria-pressed='true'] .ff-eye {
  display: none;
}

.ff-pass-toggle[aria-pressed='false'] .ff-eye-off {
  display: none;
}

.ff-submit-row {
  display: flex;
  justify-content: center;
}

.ff-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--ff-gradient-start), var(--ff-gradient-end));
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.ff-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(0, 143, 191, 0.28);
}

.ff-submit:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

.ff-submit:focus-visible {
  outline: 2px solid var(--ff-gradient-end);
  outline-offset: 2px;
}

.ff-submit:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

.ff-link-row {
  text-align: center;
}

.ff-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.ff-forgot .ff-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-text-muted);
  text-decoration: none;
}

.ff-forgot .ff-link:hover {
  color: var(--ff-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Identity-first — passo de senha: e-mail já informado + "Trocar e-mail". */
.ff-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--ff-input-border);
  background: var(--ff-input-bg);
  color: var(--ff-text);
  font-size: 15px;
  line-height: 1.4;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ff-identity-icon {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--ff-label);
}

.ff-identity-icon svg {
  width: 20px;
  height: 20px;
}

.ff-identity-email {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.ff-identity .ff-identity-switch {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.ff-identity .ff-identity-switch:hover,
.ff-identity .ff-identity-switch:focus-visible {
  color: var(--ff-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ff-divider {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid var(--ff-divider);
  margin: 0;
}

.ff-divider-text {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ff-text-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ff-divider-text::before,
.ff-divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ff-divider);
}

.ff-social-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ff-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--ff-social-border);
  background: var(--ff-social-bg);
  color: var(--ff-social-text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  box-sizing: border-box;
}

.ff-social-btn:hover {
  background: var(--ff-social-hover-bg);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.14);
}

.ff-social-btn:active {
  transform: translateY(1px);
}

.ff-social-btn:focus-visible {
  outline: 2px solid var(--ff-gradient-end);
  outline-offset: 2px;
}

.ff-google-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.ff-social-btn span {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.ff-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ff-link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--ff-link);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ff-link.ff-link-disabled,
.ff-link.ff-link-disabled:hover {
  color: rgba(10, 37, 64, 0.5);
  cursor: default;
}

.ff-back-link {
  align-self: center;
  border: none;
  background: none;
  padding: 0;
  color: var(--ff-text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.ff-error {
  color: var(--ff-error);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-align: center;
}

/* Aviso temporário do login (atributo de realm `fortportalLoginNotice`).
   Tom informativo, não de erro: o .ff-alert é vermelho e diria a coisa errada. */
.ff-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(26, 95, 122, 0.08);
  border: 1px solid rgba(26, 95, 122, 0.24);
  color: #14364a;
}

.ff-notice-link {
  align-self: flex-start;
  font-weight: 600;
  color: #14607d;
  text-decoration: underline;
}

[data-ff-theme="dark"] .ff-notice {
  background: rgba(95, 211, 243, 0.10);
  border-color: rgba(95, 211, 243, 0.28);
  color: #d7e6ef;
}

[data-ff-theme="dark"] .ff-notice-link {
  color: #5fd3f3;
}

.ff-alert {
  text-align: left;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(200, 45, 37, 0.08);
  border: 1px solid rgba(200, 45, 37, 0.28);
}

[data-ff-theme="dark"] .ff-alert {
  background: rgba(255, 142, 134, 0.12);
  border-color: rgba(255, 142, 134, 0.32);
}

.ff-warning {
  border-radius: 8px;
  background: var(--ff-warning-bg);
  color: var(--ff-warning-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 8px 10px;
}

.ff-warning ul {
  margin: 8px 0 0 16px;
  padding: 0;
}

#kc-registration-container {
  display: none;
}

@media (max-width: 1024px) {
  .ff-login::before {
    inset: 72px 0 auto;
    height: calc(100dvh - 72px);
    background-size: cover;
    background-position: center top;
  }

  .ff-page-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .ff-page-subtitle {
    font-size: 15px;
    max-width: 340px;
  }

  .ff-brand {
    font-size: 40px;
  }
}

/* Figma artboard TV-27 = 784px. Em viewports ≤800px, só encolhe o gap superior (48→20).
   Snackbar permanece completo; form/card mantêm medidas do Figma. */
@media (max-height: 800px) {
  .ff-main {
    padding: 20px 16px 8px;
    align-items: flex-start;
  }

  .ff-auth-shell {
    gap: 24px;
  }

  .ff-login::before {
    background-position: center top;
  }
}

@media (max-height: 700px) {
  .ff-main {
    padding: 12px 16px 8px;
  }

  .ff-auth-shell {
    gap: 16px;
  }

  .ff-page-title {
    font-size: 28px;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  .ff-topbar {
    height: 72px;
    padding: 0 16px;
  }

  .ff-brand {
    font-size: 34px;
  }

  .ff-main {
    padding: 16px 12px;
    align-items: flex-start;
  }

  .ff-login {
    min-height: 100dvh;
    padding-top: 72px;
  }

  .ff-login::before {
    height: calc(100dvh - 72px);
    background-size: cover;
    background-position: center top;
  }

  .ff-auth-shell {
    gap: 20px;
  }

  .ff-page-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .ff-page-subtitle {
    font-size: 14px;
    max-width: 340px;
  }

  .ff-card,
  .ff-card-form,
  .ff-snackbar {
    width: min(384px, calc(100vw - 24px));
  }

  .ff-card {
    padding: 24px 18px;
  }

  .ff-form-header h2 {
    font-size: 24px;
  }
}

/* Checklist de requisitos de senha (login-update-password / login-reset-password).
   Cada item começa "pendente" (seta) e vira "ok" (check) conforme o usuário digita —
   ver bindPasswordChecklist em fortportal-theme.js. As regras espelham a
   passwordPolicy do realm (payface-iac esc-environments/keycloak/base.yaml). */
.ff-checklist {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ff-input-bg);
  display: grid;
  gap: 6px;
}

.ff-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ff-text-muted);
  transition: color 160ms ease;
}

.ff-checklist .ff-check-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--ff-label);
  background: transparent;
  border: 1px solid currentColor;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ff-checklist .ff-check-icon::before {
  content: "›";
}

.ff-checklist li.is-ok {
  color: var(--ff-text);
}

.ff-checklist li.is-ok .ff-check-icon {
  color: #ffffff;
  background: #1f9d55;
  border-color: #1f9d55;
}

.ff-checklist li.is-ok .ff-check-icon::before {
  content: "✓";
}

.ff-checklist li.is-hidden {
  display: none;
}

/* MFA Fortface (login-fortface-*.ftl): captura facial, código por e-mail, bloqueio.
   O SDK abre em modal (setCustomizer modal.available) — a "stage" só ancora o custom element;
   no mock local ela mostra o painel de simulação. */
.ff-fortface [hidden] {
  display: none !important;
}

.ff-fortface-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ff-fortface-stage fortface-sdk {
  display: block;
  width: 100%;
}

.ff-fortface-status,
.ff-fortface-hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ff-text-muted);
}

.ff-fortface-hint {
  font-weight: 600;
}

.ff-fortface-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ff-fortface-secondary .ff-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-text-muted);
  text-align: center;
}

.ff-fortface-secondary .ff-link:hover:not(:disabled) {
  color: var(--ff-text);
}

.ff-link:disabled {
  color: rgba(10, 37, 64, 0.5);
  cursor: default;
  text-decoration: none;
}

[data-ff-theme="dark"] .ff-link:disabled {
  color: rgba(255, 255, 255, 0.45);
}

/* Aviso informativo (código reenviado etc.): mesmo tom do .ff-notice, não vermelho. */
.ff-alert-info {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(26, 95, 122, 0.08);
  border: 1px solid rgba(26, 95, 122, 0.24);
  color: #14364a;
}

[data-ff-theme="dark"] .ff-alert-info {
  background: rgba(95, 211, 243, 0.10);
  border-color: rgba(95, 211, 243, 0.28);
  color: #d7e6ef;
}

.ff-input-code input {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

/* Painel do mock do SDK (fortface-sdk-mock.js, só local). */
.ff-fortface-mock {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ff-input-bg);
  box-sizing: border-box;
}

.ff-fortface-mock p {
  margin: 0 0 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ff-label);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ff-fortface-mock button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--ff-card-border);
  background: var(--ff-card-bg);
  color: var(--ff-text);
  font-size: 14px;
  font-weight: 600;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
}

.ff-fortface-mock button:hover:not(:disabled) {
  filter: brightness(0.97);
}

.ff-fortface-mock button:disabled {
  opacity: 0.6;
  cursor: default;
}
