File size: 4,642 Bytes
f5696cb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | /* ---------------------------------------------------------------------------
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; }
|