/* Zoo multi-method sign-in: account card, method list, code entry. Loaded only by the
   zoo-signin pages; uses the --zoo-* tokens of zoo.css (light and dark designs). */
.zoo-acct { display: flex; align-items: center; gap: .875rem; padding: .75rem .875rem; margin: 0 0 1.25rem;
  border: 1px solid var(--zoo-border); border-radius: 16px; background: var(--zoo-surface, var(--zoo-field)); }
.zoo-acct__avatar { width: 2.75rem; height: 2.75rem; overflow: hidden; }
.zoo-chooser__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; display: block; }
.zoo-acct__who { flex: 1; min-width: 0; display: grid; gap: .125rem; }
.zoo-acct__name { font-weight: 600; color: var(--zoo-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoo-acct__meta { font-size: .8125rem; color: var(--zoo-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoo-acct__switch { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; color: var(--zoo-text-faint); }
.zoo-acct__switch:hover { background: var(--zoo-field-hover); color: var(--zoo-text-muted); }
.zoo-acct__switch svg { width: 1.125rem; height: 1.125rem; }

.zoo-m__lead { margin: 0 0 .75rem; font-size: .875rem; color: var(--zoo-text-muted); }
.zoo-m { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.zoo-m__form { margin: 0; }
.zoo-m__row { display: flex; align-items: center; gap: .875rem; width: 100%; min-height: 3.25rem; padding: .75rem 1rem;
  border: 1px solid var(--zoo-border); border-radius: 14px; background: var(--zoo-surface, transparent); color: var(--zoo-text);
  font: inherit; font-weight: 550; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.zoo-m__row:hover { background: var(--zoo-field-hover); border-color: var(--zoo-border-strong, var(--zoo-border)); }
.zoo-m__row:focus-visible { outline: 3px solid var(--zoo-violet-ring, rgba(124,58,237,.35)); outline-offset: 2px; }
.zoo-m__icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--zoo-text-muted); }
.zoo-m__label { flex: 1; }
.zoo-m__foot { margin: 1rem 0 0; text-align: center; font-size: .875rem; color: var(--zoo-text-faint); }
.zoo-m__foot a, .zoo-link { color: var(--zoo-violet, #7C3AED); font-weight: 550; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.zoo-m__foot a:hover, .zoo-link:hover { text-decoration: underline; }
.zoo-link[disabled] { color: var(--zoo-text-faint); cursor: default; text-decoration: none; }

/* List first, form on demand (JS adds .zoo-step--js; without JS both are visible). */
.zoo-step--js[data-open="false"] .zoo-step__form { display: none; }
.zoo-step--js[data-open="true"] .zoo-step__list { display: none; }
.zoo-step:not(.zoo-step--js) .zoo-back { display: none; }
.zoo-step__list + .zoo-step__form { margin-top: 1.25rem; }
/* Our list replaces Keycloak's generic username line and "Try another way" button on these pages. */
body:has(.zoo-step) #kc-select-try-another-way-form,
body:has(.zoo-acct) .pf-v5-c-login__main-body > .pf-v5-c-form > .pf-v5-c-form__group:has(#kc-attempted-username) { display: none !important; }
body:has(.zoo-step:not([data-open="true"])) #kc-select-try-another-way-form { display: none !important; }

/* Previously used accounts. */
.zoo-accounts__bar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .5rem; }
.zoo-accounts__title { font-size: .8125rem; color: var(--zoo-text-muted); }
.zoo-accounts__edit { background: none; border: 0; padding: .25rem .5rem; border-radius: 8px; font: inherit; font-size: .8125rem; color: var(--zoo-violet, #7C3AED); cursor: pointer; }
.zoo-accounts__edit:hover { background: var(--zoo-field-hover); }
.zoo-accounts__item { position: relative; display: flex; align-items: center; }
.zoo-accounts__remove { flex: none; margin-right: .75rem; padding: .375rem .625rem; border-radius: 8px; border: 1px solid var(--zoo-border);
  background: var(--zoo-surface, transparent); color: var(--zoo-danger, #DC2626); font: inherit; font-size: .8125rem; cursor: pointer; }
.zoo-iam .zoo-accounts:not([data-edit="true"]) .zoo-accounts__remove { display: none; }
.zoo-iam .zoo-accounts[data-edit="true"] .zoo-chooser__chev { display: none; }
.zoo-or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 1rem; font-size: .8125rem; color: var(--zoo-text-faint); }
.zoo-or::before, .zoo-or::after { content: ""; flex: 1; height: 1px; background: var(--zoo-border); }
#code { letter-spacing: .35em; font-variant-numeric: tabular-nums; font-size: 1.25rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .zoo-m__row { transition: none; } }
@media (forced-colors: active) { .zoo-m__row, .zoo-acct { border: 1px solid CanvasText; } }
