/* =============================================================================
   etr-sso.css — design system etr para as telas do SSO (views Razor).

   Os tokens do BackOffice vivem em SCSS (Etreinare.BackOffice.Spa.Ui); o SSO não compila
   SCSS, então traz aqui só o que usa, com os MESMOS nomes de variável (--etr-brand-*,
   --etr-brand-2-*, --etr-action*, --etr-focus*).

   Regras deste arquivo
    - Cor hexadecimal, px de raio/sombra e família de fonte só existem no bloco "TOKENS".
      Do bloco "PRIMITIVOS" para baixo, tudo vem de var(--etr-*).
    - Os valores PADRÃO são EXATAMENTE os do visual anterior (laranja #E67229 e cinzas de
      login.css). Loja sem cor não escreve nada e o SSO fica idêntico ao que era.
    - Loja COM cor: tenant-theme.js escreve --etr-brand-* / --etr-brand-2-* em <html>
      (derivados por brand-theme.js, com piso de contraste 4,5:1). Os primitivos só leem.
    - Sem !important, sem z-index solto, sem CDN.

   Escopo: tudo sob :where(.etr-sso) (especificidade zero). A classe vai no <main> de cada
   tela, à medida que as fatias migram; os CSS antigos continuam carregados até a limpeza.
   ============================================================================= */

/* ============================== TOKENS ==================================== */
:root {
  /* Marca primária — papel de AÇÃO (botão, link, foco). Padrão = laranja atual do SSO. */
  --etr-brand-base: #E67229;
  --etr-brand-strong: #CF621E;
  --etr-brand-soft: #FFF7F0;
  --etr-brand-tint: #FFF7F0;
  --etr-brand-ring: #F0B48E;
  --etr-brand-aura: #E67229;
  --etr-brand-on: #FFFFFF;
  --etr-brand-base-rgb: 230, 114, 41;
  --etr-brand-strong-rgb: 207, 98, 30;
  --etr-brand-soft-rgb: 255, 247, 240;
  --etr-brand-tint-rgb: 255, 247, 240;
  --etr-brand-ring-rgb: 240, 180, 142;
  --etr-brand-aura-rgb: 230, 114, 41;

  /* Marca secundária — papel de ACENTO decorativo (círculos do painel de marca). */
  --etr-brand-2-base: #E67229;
  --etr-brand-2-strong: #CF621E;
  --etr-brand-2-soft: #FFF7F0;
  --etr-brand-2-tint: #FFF7F0;
  --etr-brand-2-ring: #F0B48E;
  --etr-brand-2-aura: #E67229;
  --etr-brand-2-on: #FFFFFF;
  --etr-brand-2-base-rgb: 230, 114, 41;
  --etr-brand-2-strong-rgb: 207, 98, 30;
  --etr-brand-2-soft-rgb: 255, 247, 240;
  --etr-brand-2-tint-rgb: 255, 247, 240;
  --etr-brand-2-ring-rgb: 240, 180, 142;
  --etr-brand-2-aura-rgb: 230, 114, 41;

  /* Semânticos de ação, link e foco (nomes do BackOffice). */
  --etr-action: var(--etr-brand-base);
  --etr-action-hover: var(--etr-brand-strong);
  --etr-action-on: var(--etr-brand-on);
  --etr-action-soft: var(--etr-brand-soft);
  --etr-link: var(--etr-brand-base);
  --etr-link-hover: var(--etr-brand-strong);
  --etr-focus: var(--etr-brand-base);
  --etr-focus-ring-soft: rgba(var(--etr-brand-base-rgb), .12);
  --etr-action-shadow-hover: rgba(var(--etr-brand-base-rgb), .35);
  --etr-focus-ring-token: rgba(var(--etr-brand-base-rgb), .15);
  --etr-accent-circle: rgba(var(--etr-brand-2-base-rgb), .05);

  /* Superfícies e texto (neutros do login.css atual). */
  --etr-sso-page: #F3F4F6;
  --etr-sso-surface: #FFFFFF;
  --etr-sso-field: #FAFAFA;
  --etr-sso-ink: #111827;
  --etr-sso-ink-2: #374151;
  --etr-sso-muted: #6B7280;
  --etr-sso-subtle: #9CA3AF;
  --etr-sso-placeholder: #B0B7C3;
  --etr-sso-border: #E5E7EB;
  --etr-sso-border-soft: #EAECEF;

  /* Estados — não tematizáveis, como no BackOffice. */
  --etr-sso-danger-bg: #FEF2F2;
  --etr-sso-danger-border: #FECACA;
  --etr-sso-danger-ink: #991B1B;
  --etr-sso-danger-soft: #FEE2E2;
  --etr-sso-danger: #DC2626;
  --etr-sso-ok-soft: #DCFCE7;
  --etr-sso-ok: #16A34A;
  --etr-sso-warn-bg: #FFF3CD;
  --etr-sso-warn-border: #FFEEBA;
  --etr-sso-warn-ink: #856404;
  --etr-sso-bad: #EF4444;
  --etr-sso-rule-bg: #F8FAFC;
  --etr-sso-rule-title: #334155;

  /* Forma, sombra e tipografia. */
  --etr-sso-radius-field: 8px;
  --etr-sso-radius-card: 14px;
  --etr-sso-radius-pill: 50%;
  --etr-sso-radius-box: 12px;
  --etr-sso-shadow-card: 0 4px 28px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .04);
  --etr-sso-font-body: 'Open Sans', sans-serif;
  --etr-sso-font-display: 'Oswald', sans-serif;
  --etr-sso-ease: .18s ease;
  --etr-sso-touch: 44px;
}

/* ============================== PRIMITIVOS ================================ */

/* Âncora do rem base (vinha do login.css): 1rem = 16px em qualquer ambiente (browser, Docker, Azure). */
html {
  font-size: 16px;
}

body {
  font-size: 1rem;
  line-height: 1.5;
}

:where(.etr-sso),
:where(.etr-sso) *,
:where(.etr-sso) *::before,
:where(.etr-sso) *::after {
  box-sizing: border-box;
}

:where(.etr-sso) {
  display: flex;
  min-height: 100vh;
  font-family: var(--etr-sso-font-body);
}

/* ----- Estrutura: split marca + formulário ----- */
:where(.etr-sso) .etr-sso__split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

:where(.etr-sso) .etr-sso__brand {
  flex: 0 0 44%;
  background: var(--etr-sso-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--etr-sso-border-soft);
}

:where(.etr-sso) .etr-sso__brand::before,
:where(.etr-sso) .etr-sso__brand::after {
  content: '';
  position: absolute;
  border-radius: var(--etr-sso-radius-pill);
  background: var(--etr-accent-circle);
  pointer-events: none;
}

:where(.etr-sso) .etr-sso__brand::before { top: -130px; right: -90px; width: 350px; height: 350px; }
:where(.etr-sso) .etr-sso__brand::after { bottom: -110px; left: -90px; width: 280px; height: 280px; }

:where(.etr-sso) .etr-sso__brand-inner {
  position: relative;
  z-index: 1; /* acima dos círculos decorativos (::before/::after do painel) */
  text-align: center;
  max-width: 380px;
  width: 100%;
}

:where(.etr-sso) .etr-sso__logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 2.5rem;
}

:where(.etr-sso) .etr-sso__logo--custom { max-width: 180px; }

:where(.etr-sso) .etr-sso__brand-title {
  font-family: var(--etr-sso-font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--etr-sso-ink);
  line-height: 1.35;
  margin: 1.25rem 0 .85rem; /* 1.25rem no topo: mesmo respiro do h1 herdado das folhas antigas */
}

:where(.etr-sso) .etr-sso__brand-subtitle {
  font-size: .9rem;
  color: var(--etr-sso-muted);
  line-height: 1.65;
  margin: 0 0 .625rem;
}

:where(.etr-sso) .etr-sso__form-area {
  flex: 1;
  background: var(--etr-sso-page);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 3rem;
}

/* ----- Cartão ----- */
:where(.etr-sso) .etr-sso__card {
  background: var(--etr-sso-surface);
  border-radius: var(--etr-sso-radius-card);
  padding: 2.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--etr-sso-shadow-card);
}

:where(.etr-sso) .etr-sso__card--center { text-align: center; }

:where(.etr-sso) .etr-sso__title {
  font-family: var(--etr-sso-font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--etr-sso-ink);
  margin: 0 0 .35rem;
}

:where(.etr-sso) .etr-sso__title--solo { margin-bottom: 1.5rem; }

:where(.etr-sso) .etr-sso__subtitle {
  font-size: .855rem;
  color: var(--etr-sso-muted);
  margin: 0 0 2rem;
}

/* ----- Campo ----- */
:where(.etr-sso) .etr-sso__field { margin-bottom: 1.15rem; }

:where(.etr-sso) .etr-sso__label {
  display: block;
  font-size: .775rem;
  font-weight: 600;
  color: var(--etr-sso-ink-2);
  text-transform: uppercase;
  letter-spacing: .045em;
  margin-bottom: .45rem;
}

:where(.etr-sso) .etr-sso__input {
  display: block;
  width: 100%;
  height: 2.125rem; /* 34px: a altura que o .form-control das folhas antigas dava a este campo */
  border: 1.5px solid var(--etr-sso-border);
  border-radius: var(--etr-sso-radius-field);
  padding: .65rem .9rem;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--etr-sso-ink);
  background: var(--etr-sso-field);
  transition: border-color var(--etr-sso-ease), box-shadow var(--etr-sso-ease), background var(--etr-sso-ease);
  outline: none;
}

:where(.etr-sso) .etr-sso__input:focus {
  border-color: var(--etr-focus);
  box-shadow: 0 0 0 3px var(--etr-focus-ring-soft);
  background: var(--etr-sso-surface);
}

:where(.etr-sso) .etr-sso__input::placeholder { color: var(--etr-sso-placeholder); }

:where(.etr-sso) .etr-sso__input[aria-invalid="true"] {
  border-color: var(--etr-sso-danger);
}

/* ----- Link discreto ("Esqueci minha senha") ----- */
:where(.etr-sso) .etr-sso__link-row { text-align: right; margin: -.25rem 0 1.5rem; }

:where(.etr-sso) .etr-sso__link {
  font-size: .8rem;
  color: var(--etr-sso-subtle);
  text-decoration: none;
  transition: color var(--etr-sso-ease);
}

:where(.etr-sso) .etr-sso__link:hover { color: var(--etr-link); text-decoration: none; }

:where(.etr-sso) .etr-sso__link--brand { color: var(--etr-link); }
:where(.etr-sso) .etr-sso__link--brand:hover { color: var(--etr-link-hover); text-decoration: underline; }

/* ----- Botões ----- */
:where(.etr-sso) .etr-sso__btn {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: var(--etr-sso-radius-field);
  background: var(--etr-action);
  color: var(--etr-action-on);
  transition: background var(--etr-sso-ease), transform .12s ease, box-shadow var(--etr-sso-ease);
}

:where(.etr-sso) .etr-sso__btn:hover {
  background: var(--etr-action-hover);
  box-shadow: 0 4px 12px var(--etr-action-shadow-hover);
  transform: translateY(-1px);
  color: var(--etr-action-on);
  text-decoration: none;
}

:where(.etr-sso) .etr-sso__btn:active { transform: translateY(0); box-shadow: none; }

:where(.etr-sso) .etr-sso__btn--secondary {
  padding: .68rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: normal;
  background: transparent;
  color: var(--etr-action);
  border: 1.5px solid var(--etr-action);
}

:where(.etr-sso) .etr-sso__btn--secondary:hover {
  background: var(--etr-action);
  color: var(--etr-action-on);
  box-shadow: none;
  transform: none;
}

/* Foco visível de teclado em tudo que é acionável. */
:where(.etr-sso) .etr-sso__btn:focus-visible,
:where(.etr-sso) .etr-sso__link:focus-visible {
  outline: 2px solid var(--etr-focus);
  outline-offset: 2px;
}

/* ----- Divisor "ou" ----- */
:where(.etr-sso) .etr-sso__divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 1.15rem;
}

:where(.etr-sso) .etr-sso__divider::before,
:where(.etr-sso) .etr-sso__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--etr-sso-border);
}

:where(.etr-sso) .etr-sso__divider span {
  font-size: .78rem;
  color: var(--etr-sso-subtle);
  white-space: nowrap;
}

/* ----- Avisos e status ----- */
:where(.etr-sso) .etr-sso__alert {
  background: var(--etr-sso-danger-bg);
  border: 1px solid var(--etr-sso-danger-border);
  border-radius: var(--etr-sso-radius-field);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: var(--etr-sso-danger-ink);
}

:where(.etr-sso) .etr-sso__alert--warn {
  background: var(--etr-sso-warn-bg);
  border-color: var(--etr-sso-warn-border);
  color: var(--etr-sso-warn-ink);
}

:where(.etr-sso) .etr-sso__alert--info {
  background: var(--etr-sso-rule-bg);
  border-color: var(--etr-sso-border);
  color: var(--etr-sso-rule-title);
}

:where(.etr-sso) .etr-sso__status {
  width: 52px;
  height: 52px;
  border-radius: var(--etr-sso-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

:where(.etr-sso) .etr-sso__status--ok { background: var(--etr-sso-ok-soft); color: var(--etr-sso-ok); }
:where(.etr-sso) .etr-sso__status--erro { background: var(--etr-sso-danger-soft); color: var(--etr-sso-danger); }
:where(.etr-sso) .etr-sso__card--center .etr-sso__status { margin-left: auto; margin-right: auto; }

/* ----- Lista de regras de senha ----- */
:where(.etr-sso) .etr-sso__rules { list-style: none; padding: 0; margin: 0 0 1.5rem; }

:where(.etr-sso) .etr-sso__rules li {
  font-size: .8rem;
  color: var(--etr-sso-muted);
  padding: .2rem 0 .2rem 1.25rem;
  position: relative;
}

:where(.etr-sso) .etr-sso__rules li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--etr-action);
  font-size: .75rem;
  font-weight: 700;
}

/* ----- Recuperação de senha: opção de canal (radio), código, regras, reenvio ----- */
:where(.etr-sso) .etr-sso__option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  margin-bottom: .75rem;
  border: 2px solid var(--etr-sso-border);
  border-radius: var(--etr-sso-radius-field);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

:where(.etr-sso) .etr-sso__option:hover,
:where(.etr-sso) .etr-sso__option:focus-within,
:where(.etr-sso) .etr-sso__option:has(input:checked) {
  border-color: var(--etr-action);
  background: var(--etr-action-soft);
}

:where(.etr-sso) .etr-sso__option input[type="radio"] { accent-color: var(--etr-action); }

:where(.etr-sso) .etr-sso__token-row {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

:where(.etr-sso) .etr-sso__token {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--etr-sso-border);
  border-radius: var(--etr-sso-radius-field);
  transition: border-color .2s;
  background: var(--etr-sso-surface);
  color: var(--etr-sso-ink);
}

:where(.etr-sso) .etr-sso__token:focus {
  border-color: var(--etr-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--etr-focus-ring-token);
}

:where(.etr-sso) .etr-sso__rulebox {
  background: var(--etr-sso-rule-bg);
  border: 1px solid var(--etr-sso-border);
  border-radius: var(--etr-sso-radius-box);
  padding: 16px;
  margin: 20px 0;
}

:where(.etr-sso) .etr-sso__rulebox-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--etr-sso-rule-title);
}

:where(.etr-sso) .etr-sso__rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--etr-sso-bad);
  transition: color .2s;
}

:where(.etr-sso) .etr-sso__rule:last-child { margin-bottom: 0; }
:where(.etr-sso) .etr-sso__rule--ok { color: var(--etr-sso-ok); }

:where(.etr-sso) .etr-sso__rule-icon {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
  color: inherit;
}

:where(.etr-sso) .etr-sso__resend {
  text-align: center;
  margin-top: .75rem;
  font-size: .85rem;
}

/* ----- Consentimento e concessões: cartão largo, escopos, ações, lista de apps ----- */
:where(.etr-sso) .etr-sso__card--wide { max-width: 36rem; }

:where(.etr-sso) .etr-sso__client {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

:where(.etr-sso) .etr-sso__client-logo {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  object-fit: contain;
  border-radius: var(--etr-sso-radius-field);
}

:where(.etr-sso) .etr-sso__client .etr-sso__title,
:where(.etr-sso) .etr-sso__client .etr-sso__subtitle { margin-bottom: 0; }

:where(.etr-sso) .etr-sso__hint {
  font-size: .85rem;
  color: var(--etr-sso-muted);
  margin: 0 0 1rem;
}

:where(.etr-sso) .etr-sso__scopes {
  border: 1px solid var(--etr-sso-border);
  border-radius: var(--etr-sso-radius-field);
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}

:where(.etr-sso) .etr-sso__scopes-title {
  float: none;
  width: 100%;
  padding: .65rem 1rem;
  margin: 0;
  font-size: .775rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--etr-sso-ink-2);
  background: var(--etr-sso-rule-bg);
  border-bottom: 1px solid var(--etr-sso-border);
  border-radius: var(--etr-sso-radius-field) var(--etr-sso-radius-field) 0 0;
}

:where(.etr-sso) .etr-sso__scope-list { list-style: none; margin: 0; padding: 0; }

:where(.etr-sso) .etr-sso__scope {
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--etr-sso-ink);
  border-top: 1px solid var(--etr-sso-border-soft);
}

:where(.etr-sso) .etr-sso__scope:first-child { border-top: 0; }

:where(.etr-sso) .etr-sso__scope label { margin: 0; cursor: pointer; }

:where(.etr-sso) .etr-sso__check {
  margin-right: .5rem;
  accent-color: var(--etr-action);
}

:where(.etr-sso) .etr-sso__scope-note { font-size: .8rem; color: var(--etr-sso-muted); }

:where(.etr-sso) .etr-sso__scope-desc {
  margin: .25rem 0 0 1.5rem;
  font-size: .8rem;
  color: var(--etr-sso-muted);
}

:where(.etr-sso) .etr-sso__scope-desc label { font-weight: 400; }

:where(.etr-sso) .etr-sso__remember { margin: 0 0 1.25rem; font-size: .875rem; }

:where(.etr-sso) .etr-sso__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

:where(.etr-sso) .etr-sso__actions .etr-sso__btn { width: auto; flex: 1 1 auto; }

:where(.etr-sso) .etr-sso__btn--danger {
  background: var(--etr-sso-danger);
  color: var(--etr-sso-surface);
}

:where(.etr-sso) .etr-sso__btn--danger:hover {
  background: var(--etr-sso-danger-ink);
  box-shadow: none;
  color: var(--etr-sso-surface);
}

:where(.etr-sso) .etr-sso__btn--auto { display: inline-block; width: auto; }

:where(.etr-sso) .etr-sso__grant {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--etr-sso-border);
  font-size: .875rem;
  color: var(--etr-sso-ink);
}

:where(.etr-sso) .etr-sso__grant:last-of-type { border-bottom: 0; }
:where(.etr-sso) .etr-sso__grant-body { flex: 1 1 auto; min-width: 0; }
:where(.etr-sso) .etr-sso__grant-name { font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; }
:where(.etr-sso) .etr-sso__grant-label { font-weight: 700; }

:where(.etr-sso) .etr-sso__inline-list { list-style: none; margin: 0; padding: 0; }
:where(.etr-sso) .etr-sso__inline-list li { display: inline; }
:where(.etr-sso) .etr-sso__inline-list li::after { content: ', '; }
:where(.etr-sso) .etr-sso__inline-list li:last-child::after { content: ''; }

:where(.etr-sso) .etr-sso__meta { font-size: .8rem; color: var(--etr-sso-muted); margin: .75rem 0 0; }

/* ----- Responsivo ----- */
@media (max-width: 768px) {
  :where(.etr-sso) .etr-sso__split { flex-direction: column-reverse; }

  :where(.etr-sso) .etr-sso__brand {
    flex: 0 0 auto;
    padding: 2.5rem 2rem 2rem;
    border-right: 0;
    border-top: 1px solid var(--etr-sso-border-soft);
  }

  :where(.etr-sso) .etr-sso__logo { max-width: 150px; margin-bottom: 1rem; }
  :where(.etr-sso) .etr-sso__brand-title { font-size: 1.25rem; }
  :where(.etr-sso) .etr-sso__brand-subtitle { font-size: .83rem; }
  :where(.etr-sso) .etr-sso__form-area { padding: 2rem 1.25rem; }
  :where(.etr-sso) .etr-sso__card { padding: 2rem 1.5rem; }

  /* Alvo de toque >= 44px e fonte 16px nos controles (evita zoom do iOS ao focar). */
  :where(.etr-sso) .etr-sso__input,
  :where(.etr-sso) .etr-sso__btn { min-height: var(--etr-sso-touch); }
  :where(.etr-sso) .etr-sso__input { font-size: 1rem; }
  :where(.etr-sso) .etr-sso__btn { font-size: 1rem; }
  :where(.etr-sso) .etr-sso__grant { flex-wrap: wrap; }
  :where(.etr-sso) .etr-sso__grant > form { flex: 1 1 100%; }
  :where(.etr-sso) .etr-sso__grant .etr-sso__btn--auto { display: block; width: 100%; }

  /* Link com área de toque de 44px (WCAG 2.5.8), sem mexer no desktop. A linha do link volta ao
     espaçamento de antes: a altura extra (20px) é descontada nas margens. */
  :where(.etr-sso) .etr-sso__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--etr-sso-touch);
  }

  :where(.etr-sso) .etr-sso__link-row { margin: -.875rem 0 .875rem; }

  :where(.etr-sso) .etr-sso__resend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: 0;
  }
  :where(.etr-sso) .etr-sso__option { min-height: var(--etr-sso-touch); }
}

@media (max-width: 400px) {
  :where(.etr-sso) .etr-sso__card { padding: 1.75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.etr-sso) .etr-sso__input,
  :where(.etr-sso) .etr-sso__btn,
  :where(.etr-sso) .etr-sso__option,
  :where(.etr-sso) .etr-sso__token,
  :where(.etr-sso) .etr-sso__rule,
  :where(.etr-sso) .etr-sso__link {
    transition: none;
  }

  :where(.etr-sso) .etr-sso__btn:hover { transform: none; }
}
