/*
 * FiscalField — identidade visual do portal (16/10/2026).
 *
 * Similar à do Sistema Maestro, por decisão do responsável: fonte Geist, azul do Maestro, menu
 * escuro em uma coluna com grupos recolhíveis e busca, cartões de canto 6 px sem sombra e barra de
 * filtros com pastilhas tracejadas. Carregado por último: redefine os tokens das camadas antigas
 * (portal.css) e do sistema de design (portal-ds.css) e dá o acabamento da moldura.
 * Referência: docs/identidade-visual-maestro-2026-10-16.md.
 */

:root {
  --id-font: 'Geist', 'Inter', 'Segoe UI', sans-serif;
  --id-bg: #f5f7fa;
  --id-surface: #ffffff;
  --id-ink: #020617;
  --id-text: #1e293b;
  --id-muted: #65758b;
  --id-border: #dee2e8;
  --id-input-border: #d8dde4;
  --id-accent: #1ca6df;
  --id-accent-text: #166a92;
  --id-accent-soft: rgba(28, 166, 223, 0.10);
  --id-accent-line: rgba(28, 166, 223, 0.45);
  --id-primary: #35619f;
  --id-primary-strong: #22406f;
  --id-primary-gradient: linear-gradient(100deg, #35619f, #22406f);
  --id-danger: #d51010;
  --id-radius: 6px;
  --id-nav-bg: linear-gradient(185deg, #050d16 0%, #08202e 55%, #0a3949 100%);
  --id-nav-text: #d8e8f2;
  --id-nav-label: #5fcbf5;
  --id-nav-width: 255px;
  --id-topbar-height: 64px;

  /* Camada antiga. */
  --portal-ink: var(--id-ink);
  --portal-muted: var(--id-muted);
  --portal-primary: var(--id-accent);
  --portal-primary-dark: var(--id-primary-strong);
  --portal-background: var(--id-bg);
  --portal-border: var(--id-border);
  --portal-shell-context: var(--id-bg);

  /* Sistema de design. */
  --ff-font: var(--id-font);
  --ff-color-primary: var(--id-primary);
  --ff-color-primary-strong: var(--id-primary-strong);
  --ff-color-primary-soft: #e8f6fc;
  --ff-color-ink: var(--id-ink);
  --ff-color-text: var(--id-text);
  --ff-color-muted: var(--id-muted);
  --ff-color-bg: var(--id-bg);
  --ff-color-surface-alt: var(--id-bg);
  --ff-color-border: var(--id-border);
  --ff-color-border-strong: var(--id-input-border);
  --ff-color-info: var(--id-accent-text);
  --ff-color-info-soft: #e8f6fc;
  --ff-radius-md: var(--id-radius);
  --ff-radius-lg: 8px;
  --ff-shadow-sm: none;
  --ff-shadow-md: 0 8px 24px rgba(2, 6, 23, 0.08);
  --ff-focus-ring: 0 0 0 3px rgba(28, 166, 223, 0.35);
}

body.portal-body {
  font-family: var(--id-font);
  background: var(--id-bg);
  color: var(--id-text);
  -webkit-font-smoothing: antialiased;
}

body.portal-body :where(button, input, select, textarea) {
  font-family: inherit;
}

/* ---------- Moldura ---------- */

.portal-shell-v3 .portal-shell,
.portal-shell-v3.portal-shell-v2-enabled .portal-shell {
  grid-template-columns: var(--id-nav-width) minmax(0, 1fr);
  background: var(--id-bg);
}

.portal-shell-v3.portal-sidebar-collapsed .portal-shell,
.portal-shell-v3.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-shell {
  grid-template-columns: 68px minmax(0, 1fr);
}

.portal-shell-v3 .portal-sidebar,
.portal-shell-v3.portal-shell-v2-enabled .portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0;
  background: var(--id-nav-bg);
  color: var(--id-nav-text);
  border-right: 0;
  box-shadow: none;
}

.ff-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-family: var(--id-font);
}

.ff-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--id-topbar-height);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-nav__logo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: var(--id-radius);
  background: #fff;
}

.ff-nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ff-nav__product {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.ff-nav__product strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.ff-nav__product span {
  color: rgba(216, 232, 242, 0.68);
  font-size: 12px;
}

.ff-nav__search {
  position: relative;
  display: block;
  margin: 14px 12px 6px;
}

.ff-nav__search svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 16px;
  height: 16px;
  color: rgba(216, 232, 242, 0.6);
  transform: translateY(-50%);
  pointer-events: none;
}

.ff-nav__search input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--id-radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
}

.ff-nav__search input::placeholder {
  color: rgba(216, 232, 242, 0.55);
}

.ff-nav__search input:focus-visible {
  border-color: var(--id-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 166, 223, 0.3);
}

.ff-nav__groups {
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 12px 16px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.ff-nav__empty {
  margin: 12px 4px;
  color: rgba(216, 232, 242, 0.7);
  font-size: 13px;
}

.ff-nav__group + .ff-nav__group {
  margin-top: 6px;
}

.ff-nav__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 32px;
  padding: 10px 8px 6px;
  border: 0;
  background: none;
  color: var(--id-nav-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.ff-nav__group-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.ff-nav__group-toggle[aria-expanded='false'] svg {
  transform: rotate(-90deg);
}

.ff-nav__group-toggle:focus-visible,
.ff-nav__item:focus-visible,
.ff-nav__account:focus-visible {
  outline: 2px solid var(--id-accent);
  outline-offset: 2px;
}

.ff-nav__items {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ff-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--id-radius);
  color: var(--id-nav-text);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ff-nav__item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.ff-nav__item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.ff-nav__item.is-active {
  background: var(--id-accent);
  color: #04202d;
  font-weight: 600;
  box-shadow: 0 4px 12px -6px rgba(28, 166, 223, 0.55);
}

.ff-nav__item-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-nav__badge {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(95, 203, 245, 0.18);
  color: #bfeaff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.ff-nav__item.is-active .ff-nav__badge {
  background: rgba(4, 32, 45, 0.16);
  color: #04202d;
}

.ff-nav__footer {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-nav__account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: var(--id-radius);
  color: var(--id-nav-text);
  text-decoration: none;
}

.ff-nav__account:hover,
.ff-nav__account.is-active {
  background: rgba(255, 255, 255, 0.07);
}

.ff-nav__avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(28, 166, 223, 0.22);
  color: #bfeaff;
  font-size: 13px;
  font-weight: 700;
}

.ff-nav__account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.ff-nav__account-copy strong,
.ff-nav__account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-nav__account-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.ff-nav__account-copy small {
  color: rgba(216, 232, 242, 0.65);
  font-size: 12px;
}

.ff-nav__close {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--id-radius);
  background: transparent;
  color: var(--id-nav-text);
  font-size: 14px;
  cursor: pointer;
}

/* Menu recolhido: só ícones. */
.ff-nav.is-collapsed .ff-nav__brand {
  justify-content: center;
  padding: 12px 0;
}

.ff-nav.is-collapsed .ff-nav__groups {
  padding: 10px 10px 16px;
}

.ff-nav.is-collapsed .ff-nav__group + .ff-nav__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-nav.is-collapsed .ff-nav__item,
.ff-nav.is-collapsed .ff-nav__account {
  justify-content: center;
  padding: 10px 0;
}

/* Barra superior. */
.portal-shell-v3 .portal-main,
.portal-shell-v3.portal-shell-v2-enabled .portal-main {
  padding: 0 28px 96px;
  background: var(--id-bg);
}

.portal-shell-v3 .portal-main > .portal-topbar,
.portal-shell-v3.portal-shell-v2-enabled .portal-main > .portal-topbar--workspace {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--id-topbar-height);
  max-width: none;
  margin: 0 -28px 24px;
  padding: 10px 28px;
  border: 0;
  border-bottom: 1px solid var(--id-border);
  border-radius: 0;
  background: var(--id-bg);
  box-shadow: none;
}

.portal-shell-v3 .portal-topbar__sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.portal-shell-v3 .portal-topbar__sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.portal-shell-v3 .portal-topbar__title {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-shell-v3 .portal-topbar__title .portal-eyebrow {
  display: none;
}

.portal-shell-v3 .portal-topbar__title h1 {
  margin: 0;
  color: var(--id-ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Título da página: 24 px, sem cartão e sem rótulo acima. */
.portal-shell-v3 .portal-main :is(.ff-page-header, .portal-workspace-hero) {
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.portal-shell-v3 .portal-main :is(.ff-page-header__eyebrow, .portal-workspace-hero > .portal-eyebrow, .portal-workspace-hero > div > .portal-eyebrow) {
  display: none;
}

.portal-shell-v3 .portal-main :is(.ff-page-header__title, .portal-workspace-hero h2) {
  margin: 0;
  color: var(--id-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.portal-shell-v3 .portal-main :is(.ff-page-header__lead, .portal-workspace-hero p:not(.portal-eyebrow)) {
  color: var(--id-muted);
  font-size: 14px;
}

/* ---------- Botões ---------- */

.portal-shell-v3 :is(.ff-btn, .portal-primary-button, .portal-secondary-button) {
  min-height: 36px;
  border-radius: var(--id-radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.portal-shell-v3 :is(.ff-btn--primary, .portal-primary-button):not(:is(
  .portal-primary-button--danger,
  .portal-primary-button--success,
  .portal-primary-button--warning,
  .portal-primary-button--link
)) {
  border-color: transparent;
  background: var(--id-primary-gradient);
  color: #fff;
}

.portal-shell-v3 :is(.ff-btn--primary, .portal-primary-button):not(:disabled):hover {
  filter: brightness(1.08);
}

.portal-shell-v3 :is(.ff-btn--secondary, .portal-secondary-button):not(:is(
  .portal-secondary-button--danger,
  .portal-secondary-button--success,
  .portal-secondary-button--warning,
  .portal-secondary-button--link
)) {
  border: 1px solid var(--id-border);
  background: var(--id-bg);
  color: var(--id-ink);
}

.portal-shell-v3 :is(.ff-btn--secondary, .portal-secondary-button):not(:disabled):hover {
  background: #eef1f5;
}

.portal-shell-v3 :is(.ff-input, .ff-field input, .ff-field select, .ff-field textarea, .ff-fbar__input) {
  border-color: var(--id-input-border);
  border-radius: var(--id-radius);
}

.portal-shell-v3 :is(.ff-input, .ff-field input, .ff-field select, .ff-field textarea, .ff-fbar__input):focus-visible {
  border-color: #1ba1de;
  outline: none;
  box-shadow: var(--ff-focus-ring);
}

/* ---------- Cartões ---------- */

.portal-shell-v3 :is(.ff-card, .ff-fbar, .ff-filterbar, .ff-stat) {
  border: 1px solid var(--id-border);
  border-radius: var(--id-radius);
  box-shadow: none;
}

/* ---------- Filtros ---------- */

.portal-shell-v3 .ff-fbar__group {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.portal-shell-v3 .ff-fbar__row + .ff-fbar__row {
  border-top-color: var(--id-border);
}

.portal-shell-v3 .ff-fchip__main,
.portal-shell-v3 .ff-fchip__clear {
  min-height: 32px;
  border: 1px dashed var(--id-border);
  background: var(--id-bg);
  color: var(--id-text);
  font: 500 12px/1 var(--id-font);
}

.portal-shell-v3 .ff-fchip__main:hover {
  border-color: #b9c3cf;
  background: #eef1f5;
}

.portal-shell-v3 .ff-fchip.is-active .ff-fchip__main,
.portal-shell-v3 .ff-fchip.is-active .ff-fchip__clear,
.portal-shell-v3 .ff-fchip__clear {
  border-style: solid;
  border-color: var(--id-accent-line);
  background: var(--id-accent-soft);
  color: var(--id-accent-text);
  font-weight: 500;
}

.portal-shell-v3 .ff-fchip.is-active :is(.ff-fchip__icon, .ff-fchip__chevron) {
  color: var(--id-accent-text);
}

.portal-shell-v3 .ff-fchip__tag {
  background: var(--id-accent);
  color: #fff;
}

/* ---------- Tabelas ---------- */

.portal-shell-v3 .ff-table {
  border: 1px solid var(--id-border);
  border-radius: var(--id-radius);
  background: var(--id-surface);
  font-size: 14px;
}

.portal-shell-v3 .ff-table th {
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--id-border);
  background: var(--id-surface);
  color: var(--id-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-shell-v3 .ff-table td {
  height: 52px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--id-border);
}

.portal-shell-v3 .ff-table tbody tr:hover td {
  background: #f8fafc;
}

.portal-shell-v3 .ff-badge {
  min-height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Telas estreitas ---------- */

@media (max-width: 1080px) {
  .portal-shell-v3 .portal-shell,
  .portal-shell-v3.portal-shell-v2-enabled .portal-shell,
  .portal-shell-v3.portal-sidebar-collapsed .portal-shell,
  .portal-shell-v3.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-shell-v3 .portal-sidebar,
  .portal-shell-v3.portal-shell-v2-enabled .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: none;
    width: min(var(--id-nav-width), 86vw);
    height: 100vh;
  }

  .portal-shell-v3.portal-sidebar-mobile-open .portal-sidebar,
  .portal-shell-v3.portal-shell-v2-enabled.portal-sidebar-mobile-open .portal-sidebar {
    display: block;
    box-shadow: 0 0 0 100vmax rgba(2, 6, 23, 0.45);
  }

  .portal-shell-v3 .portal-main,
  .portal-shell-v3.portal-shell-v2-enabled .portal-main {
    padding: 0 16px 88px;
  }

  .portal-shell-v3 .portal-main > .portal-topbar,
  .portal-shell-v3.portal-shell-v2-enabled .portal-main > .portal-topbar--workspace {
    margin: 0 -16px 16px;
    padding: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-nav__group-toggle svg,
  .ff-nav__item {
    transition: none;
  }
}

/* Itens longos do menu ("Localização e consentimento") cortam com reticências, sem passar da borda. */
.ff-nav__items li,
.ff-nav__item {
  min-width: 0;
}

/* ---------- Telas de entrada (estilo do Sistema Maestro, 17/10/2026) ----------
   Login com fundo escuro animado e cartão translúcido; as demais telas de acesso (senha, convite,
   ativação, solicitação) usam o mesmo fundo e o mesmo cartão. */

.ff-login,
.portal-login-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(150deg, #050d16 0%, #08202e 55%, #0a3949 100%);
  color: #d8e8f2;
  font-family: var(--id-font);
}

.ff-login__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ff-login__glow {
  --glow-x: 40%;
  --glow-y: 0px;
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 480px at var(--glow-x) var(--glow-y), rgba(28, 166, 223, 0.1), transparent 70%);
  pointer-events: none;
}

.ff-login__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 384px);
  align-items: center;
  gap: 48px 96px;
  max-width: 1040px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 32px 72px;
  box-sizing: border-box;
}

.ff-login__hero { display: grid; justify-items: start; gap: 8px; max-width: 380px; }
.ff-login__logo { display: inline-flex; padding: 6px 10px; border-radius: 8px; background: #fff; }
.ff-login__logo img { display: block; height: 30px; width: auto; }
.ff-login__hero h1 { margin: 16px 0 0; color: #fff; font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.ff-login__product { margin: 0; color: #5fcbf5; font-size: 18px; font-weight: 500; }
.ff-login__lead { margin: 16px 0 0; color: rgba(216, 232, 242, 0.78); font-size: 15px; line-height: 1.6; }

.ff-login__card,
.portal-login-shell .portal-login-card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(28, 166, 223, 0.06);
  backdrop-filter: blur(12px);
  color: #d8e8f2;
}

.portal-login-shell { display: grid; place-items: center; padding: 48px 16px; box-sizing: border-box; }
.portal-login-shell .portal-login-card { width: min(440px, 100%); box-sizing: border-box; }

.ff-login__card h2 { margin: 0; color: #fff; font-size: 20px; font-weight: 700; }
.ff-login__hint { margin: 6px 0 20px; color: rgba(216, 232, 242, 0.72); font-size: 14px; }
.ff-login__hint strong { color: #fff; }

/* Campos e textos dentro dos cartões escuros. */
:is(.ff-login__card, .portal-login-shell .portal-login-card) :is(h1, h2, h3, strong) { color: #fff; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) :is(p, .portal-subtitle, .portal-eyebrow, small) { color: rgba(216, 232, 242, 0.75); }
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-field { display: grid; gap: 6px; margin-bottom: 14px; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) label { color: #d8e8f2; font-size: 14px; font-weight: 500; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) :is(input[type='email'], input[type='text'], input[type='password'], input[type='tel'], select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
:is(.ff-login__card, .portal-login-shell .portal-login-card) textarea { padding: 10px 12px; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) input::placeholder { color: rgba(216, 232, 242, 0.45); }
:is(.ff-login__card, .portal-login-shell .portal-login-card) :is(input, select, textarea):focus-visible {
  border-color: #1ca6df;
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 166, 223, 0.3);
}
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-password-field { position: relative; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: rgba(216, 232, 242, 0.75);
  transform: translateY(-50%);
  cursor: pointer;
}
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-password-toggle svg { width: 18px; height: 18px; fill: currentColor; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-password-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-message { border-radius: 8px; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) .portal-primary-button,
.ff-login__submit {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(100deg, #35619f, #22406f);
  color: #fff;
  font-weight: 600;
}
.ff-login__submit { margin-top: 6px; }
:is(.ff-login__card, .portal-login-shell .portal-login-card) :is(.portal-secondary-button, .ff-btn--ghost) {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #d8e8f2;
}
:is(.ff-login__card, .portal-login-shell .portal-login-card) a:not(.ff-btn):not(.portal-primary-button):not(.portal-secondary-button) { color: #5fcbf5; }
.ff-login__google { width: 100%; margin-top: 10px; }
.ff-login__actions { display: grid; gap: 10px; }
.ff-login__actions .ff-btn { width: 100%; }
.ff-login__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.ff-login__links a { color: #5fcbf5; text-decoration: none; }
.ff-login__links a:hover { text-decoration: underline; }
.ff-login__footer { position: absolute; right: 0; bottom: 20px; left: 0; margin: 0; color: rgba(216, 232, 242, 0.5); font-size: 12px; text-align: center; }

@media (max-width: 860px) {
  .ff-login__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 16px 72px; align-content: center; }
  .ff-login__hero h1 { font-size: 36px; }
  .ff-login__lead { display: none; }
  .ff-login__card { padding: 24px; }
}
.portal-login-shell .portal-brand-lockup__logo { width: auto; height: 40px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.portal-login-shell .portal-brand-lockup { margin-bottom: 8px; }
