/* --------------------------------------------------------------------------- W57-T36 / C12: the login challenges and the signed-in Security room. Lane-owned CSS stays here, imported by its consumers, because index.css is a shared surface. The existing login inputs/CTA keep their eight-state rules; this file adds layout and quiet controls, not a second control vocabulary. --------------------------------------------------------------------------- */ .login-mfa-heading { margin: 0 0 16px; font-size: var(--lp-fs-md); font-weight: 600; line-height: var(--lp-lh-tight); color: var(--lp-ink); } .login-mfa-help { margin: 0 0 12px; font-size: var(--lp-fs-xs); line-height: var(--lp-lh); color: var(--lp-muted); } .login-mfa-label { display: block; margin: 0 0 4px; font-size: var(--lp-fs-xs); color: var(--lp-ink); } .login-mfa-policy { margin: 0 0 16px; padding-left: 20px; font-size: var(--lp-fs-xs); line-height: var(--lp-lh); color: var(--lp-muted); } .login-mfa-policy li + li { margin-top: 4px; } /* The card stays 410px in every step. Even a long username in the setup URI wraps inside that width; it can never stretch the door or become a hotlink to a third-party QR service. Both values stay selectable for manual setup. */ .login-mfa-secret, .login-mfa-uri { display: block; margin: 0 0 16px; font: inherit; font-size: var(--lp-fs-xs); line-height: var(--lp-lh); color: var(--lp-ink); overflow-wrap: anywhere; user-select: text; } .login-mfa-secret { font-size: var(--lp-fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; } .login-mfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; list-style: none; padding: 12px 0; margin: 0 0 8px; border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); color: var(--lp-ink); font-size: var(--lp-fs-sm); font-variant-numeric: tabular-nums; user-select: text; } .login-mfa-codes code { font: inherit; overflow-wrap: anywhere; } /* BASE reset, before any state. Copy and Back must never inherit the native button's border/fill, or impersonate the one primary acknowledgement. */ .login-mfa-quiet { border: 0; background: transparent; font: inherit; color: inherit; display: inline-flex; align-items: center; justify-content: center; min-height: var(--login-control-h); padding: 0 8px; border-radius: var(--lp-r-sm); font-size: var(--lp-fs-xs); cursor: pointer; } .login-mfa-quiet:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .login-mfa-quiet:disabled { opacity: 0.55; cursor: not-allowed; } @media (hover: hover) and (pointer: fine) { .login-mfa-quiet:hover:not(:disabled) { background: var(--lp-wash); } } .login-mfa-back { width: 100%; margin-top: 8px; } .login-mfa-copy-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .login-mfa-copy-status { min-height: 1lh; font-size: var(--lp-fs-xs); color: var(--lp-muted); } /* Four/eight-pixel additions around the inherited 38px controls. The card, input border widths, fills, primary colors and focus states stay shared. */ .login-form:has(.login-mfa-label) .login-input { margin-bottom: 12px; } .login-form:has(.login-mfa-label) .login-submit, .login-form:has(.login-mfa-codes) .login-submit { margin-top: 8px; } /* The existing card has an 8px outer corner. Match its input's small corner on the CTA too, so the extended card has two radii rather than three. */ .login-card .login-submit { border-radius: var(--lp-r-sm); } .login-mfa-security .set-h { font-weight: 600; } .login-mfa-status { margin: 0 0 16px; font-size: var(--lp-fs-xs); } .login-mfa-status > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--lp-line); } .login-mfa-status dt { color: var(--lp-muted); } .login-mfa-status dd { margin: 0; color: var(--lp-ink); font-variant-numeric: tabular-nums; } .login-mfa-regenerate { margin-top: 16px; max-width: 410px; } /* Native top layer supplies inertness and focus containment. No hand-maintained z-index or shadow is needed, and the clear codes never sit under a live rail. */ .login-mfa-dialog { width: calc(100% - 32px); max-width: 410px; max-height: calc(100dvh - 48px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface); color: var(--lp-ink); font: inherit; } .login-mfa-dialog::backdrop { background: var(--lp-wash); opacity: 0.8; }