/* Shared by all three portals: the copyright footer and the authentication code input.
   Tokens fall back to the portals' own so a page without them still looks right. */
.brandfoot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 16px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted, #64748B); }
.brandfoot__copy { unicode-bidi: isolate; }
.brandfoot__dev b { font-weight: 700; color: #B7791F; letter-spacing: .01em; }
.brandfoot--dark { color: rgba(255,255,255,.62); }
.brandfoot--dark .brandfoot__dev b { color: var(--gold, #F5B82E); }

/* authentication code: six cells over one real input */
.otp { margin: 4px 0 14px; }
.otp__label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--text, #0F172A); }
.otp__field { position: relative; width: 100%; max-width: 360px; margin-inline: auto; }
.otp__cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; }
.otp__cell { height: 56px; display: grid; place-items: center; border: 1.5px solid var(--line, #E5EAF2); border-radius: 12px; background: #fff; font-size: 24px; font-weight: 700; color: var(--navy, #071B3A); font-variant-numeric: tabular-nums; transition: border-color .12s, box-shadow .12s, background .12s; }
.otp__cell.is-filled { background: #F7F9FC; border-color: #C9D3E3; }
.otp__cell.is-active { border-color: var(--gold, #F5B82E); box-shadow: 0 0 0 3px rgba(245,184,46,.35); background: #fff; }
.otp__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 24px; letter-spacing: 1em; cursor: text; border: 0; background: transparent; direction: ltr; }
.otp__input:focus-visible { outline: none; }
.otp__field:focus-within .otp__cell.is-active { border-color: var(--gold, #F5B82E); }
.otp__msg { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--muted, #64748B); text-align: center; }
.otp__msg--err { color: #B42318; font-weight: 700; }
.otp__input[aria-invalid="true"] ~ * { }
.otp__field:has(.otp__input[aria-invalid="true"]) .otp__cell { border-color: #F04438; }
.otp__switch { display: block; margin: 6px auto 0; padding: 10px 12px; min-height: 44px; border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--brand-ink, #4938d7); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* recovery mode: the real input becomes visible, a plain text field */
.otp--recovery .otp__cells { display: none; }
.otp--recovery .otp__input { position: static; opacity: 1; height: 56px; padding: 0 14px; border: 1.5px solid var(--line, #E5EAF2); border-radius: 12px; background: #fff; font-size: 18px; letter-spacing: .08em; text-align: center; }
.otp--recovery .otp__input:focus { border-color: var(--gold, #F5B82E); box-shadow: 0 0 0 3px rgba(245,184,46,.35); }
@media (max-width: 380px) { .otp__cells { gap: 6px; } .otp__cell { height: 50px; font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .otp__cell { transition: none; } }

/* inside the apps' own screens */
.about .brandfoot { padding: 4px 0 0; align-items: flex-start; text-align: start; }
.auth .auth__brandfoot { margin-top: auto; padding-bottom: calc(10px + var(--sab, 0px)); }
.auth .auth__install { width: 100%; max-width: 400px; }
.auth .auth__install .hint { color: var(--muted, #64748B); font-size: 13px; text-align: center; }
.auth .auth__install .btn { margin-top: 8px; }
/* Sign-in screens: the navy hero covers only the top; the footer sits on the light page below it, so the 'dark' tone must read on light. */
.auth .auth__brandfoot.brandfoot--dark { color: var(--muted, #64748B); }
.auth .auth__brandfoot.brandfoot--dark .brandfoot__dev b { color: #B7791F; }
