/* Keep this asset identical in console/static and license-server/static. */

/* A new password's strength (secure.js): a glow round the box - red, orange, yellow, green - and a word under it. */
input[data-strength] { transition: border-color 160ms ease, box-shadow 160ms ease, outline-color 160ms ease; }
input[data-strength][data-level="0"] { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217,45,32,.16), 0 0 16px rgba(217,45,32,.42) !important; outline-color: #d92d20 !important; }
input[data-strength][data-level="1"] { border-color: #ef6820 !important; box-shadow: 0 0 0 3px rgba(239,104,32,.16), 0 0 16px rgba(239,104,32,.42) !important; outline-color: #ef6820 !important; }
input[data-strength][data-level="2"] { border-color: #e6a700 !important; box-shadow: 0 0 0 3px rgba(234,170,8,.2), 0 0 16px rgba(234,170,8,.5) !important; outline-color: #e6a700 !important; }
input[data-strength][data-level="3"] { border-color: #17b26a !important; box-shadow: 0 0 0 3px rgba(23,178,106,.16), 0 0 16px rgba(23,178,106,.42) !important; outline-color: #17b26a !important; }
.pw-meter { min-height: 18px; margin: 6px 0 12px; font-size: 12.5px; line-height: 1.4; color: #667085; }
.pw-meter[data-level="0"] { color: #b42318; }
.pw-meter[data-level="1"] { color: #b93815; }
.pw-meter[data-level="2"] { color: #8a5a00; }
.pw-meter[data-level="3"] { color: #067647; }

/* The authenticator page and its pop-up. */
.authenticator { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border: 1px solid #e3e6eb; border-radius: 10px; background: #fff; }
.authenticator .device-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #eef0ff; color: #4338ca; }
.authenticator .device-icon.none { background: #f2f4f7; color: #8a94a6; }
.authenticator .device { flex: 1 1 220px; min-width: 0; }
.authenticator .device b { display: block; font-size: 15px; color: #101828; overflow-wrap: anywhere; }
.authenticator .device span { display: block; font-size: 12.5px; color: #667085; margin-top: 2px; }
.authenticator .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.authenticator .actions form { margin: 0; }
.authenticator-open { display: inline-flex; align-items: center; gap: 10px; }

dialog.mfa-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 1px solid #e3e6eb; border-radius: 12px; background: #fff; color: #101828; box-shadow: 0 24px 64px rgba(16,24,40,.28), 0 2px 8px rgba(16,24,40,.08); }
dialog.mfa-dialog::backdrop { background: rgba(16,24,40,.5); }
dialog.mfa-dialog[open]:not(:modal) { position: relative; margin: 18px auto; }
.mfa-dialog .mfa-body { padding: 22px 24px 20px; }
.mfa-dialog .mfa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mfa-dialog h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.mfa-dialog .mfa-x { flex: 0 0 auto; min-height: 0; padding: 4px 9px; border: 1px solid #e3e6eb; border-radius: 6px; background: #fff; color: #344054; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: none; }
.mfa-dialog .mfa-x:hover { background: #f8f9fb; color: #101828; transform: none; }
.mfa-dialog .mfa-step { display: flex; gap: 10px; align-items: baseline; margin: 14px 0 6px; font-weight: 600; font-size: 13.5px; color: #101828; }
.mfa-dialog .mfa-step i { flex: 0 0 22px; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: #4f46e5; color: #fff; font-style: normal; font-size: 12px; }
.mfa-dialog .mfa-qr { display: block; width: 208px; height: 208px; margin: 10px auto 4px; border: 1px solid #e3e6eb; border-radius: 10px; background: #fff; }
.mfa-dialog .mfa-keybox { margin: 8px 0 0; padding: 10px 12px; border: 1px dashed #d0d5dd; border-radius: 8px; background: #f8f9fb; }
.mfa-dialog .mfa-key { display: block; font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 14px; letter-spacing: .06em; color: #101828; word-break: break-all; }
.mfa-dialog .mfa-link { min-height: 0; padding: 0; border: 0; background: none; color: #4338ca; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; }
.mfa-dialog .mfa-link:hover { background: none; color: #312e81; transform: none; box-shadow: none; }
.mfa-dialog label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: #344054; }
.mfa-dialog input[type="text"] { display: block; width: 100%; box-sizing: border-box; }
.mfa-dialog input.otp { font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 24px; letter-spacing: .45em; text-align: center; padding: 10px 8px; }
.mfa-dialog .mfa-error { margin: 12px 0 0; padding: 9px 12px; border: 1px solid #fecdca; border-radius: 8px; background: #fef3f2; color: #7a271a; font-size: 13px; }
.mfa-dialog .mfa-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; }
.mfa-dialog .mfa-foot button[type="submit"] { flex: 1; }
.mfa-dialog .mfa-note { margin: 10px 0 0; font-size: 12px; color: #667085; }
.recovery-list { columns: 2; margin: 10px 0 0; padding-left: 22px; font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 13.5px; }
.recovery-list li { margin: 3px 0; }
@media (max-width: 480px) {
  .mfa-dialog .mfa-body { padding: 18px 16px; }
  .mfa-dialog .mfa-qr { width: 184px; height: 184px; }
  .recovery-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  input[data-strength] { transition: none; }
}
@media (forced-colors: active) {
  input[data-strength][data-level] { box-shadow: none !important; border-width: 2px; }
}
