/* Markazi — the auth pages ("The Atrium"): sign-in, change / forgot / reset password, two-step,
   passkey, account status and access denied.
   Hand-authored, loaded only by Pages/Auth/_MarkaziAuthLayout.cshtml (Markazi profile). Aqari's pages
   never link it. Palette = Atrium Navy (docs/markazi/themes/1-atrium-navy/tokens.css); fonts = the
   self-hosted IBM Plex pair the themes already ship. Page-scoped on purpose: styles.css is prebuilt,
   so a Tailwind class it does not already contain would not apply here. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/themes/ibm-plex-sans/ibm-plex-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20A0-20CF, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/themes/ibm-plex-sans-arabic/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/themes/ibm-plex-sans-arabic/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/themes/ibm-plex-sans-arabic/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/themes/ibm-plex-sans-arabic/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --mkl-navy: #1B2559;
  --mkl-navy-deep: #111840;
  --mkl-navy-ink: #141B34;
  --mkl-blue: #1379F0;
  --mkl-blue-deep: #0F6BDC;
  --mkl-blue-soft: #5FA5F5;
  --mkl-amber: #F5A524;
  --mkl-canvas: #F4F6FA;
  --mkl-surface: #FFFFFF;
  --mkl-text: #141B34;
  --mkl-muted: #5B6480;
  --mkl-hair: #E2E6EE;
  --mkl-input: #D3D9E4;
  --mkl-danger: #C8281C;
  --mkl-font: "IBM Plex Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --mkl-font-ar: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}
html.dark {
  --mkl-canvas: #0F1530;
  --mkl-surface: #161D3F;
  --mkl-text: #E6EAF5;
  --mkl-muted: #9AA6CC;
  --mkl-hair: #27306A;
  --mkl-input: #36407A;
}

html, body.mkl { height: 100%; }
body.mkl {
  margin: 0;
  font-family: var(--mkl-font);
  font-variant-numeric: tabular-nums;
  color: var(--mkl-text);
  background: var(--mkl-canvas);
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body.mkl { font-family: var(--mkl-font-ar); }
body.mkl :focus-visible { outline: 2px solid var(--mkl-blue); outline-offset: 2px; }

/* ---------- layout ---------- */
.mkl-shell { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: 100%; }
@media (max-width: 1023px) { .mkl-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } }

/* ---------- hero (the atrium) ---------- */
.mkl-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 80% 110%, rgba(19, 121, 240, 0.28), transparent 60%),
    radial-gradient(90% 60% at 0% 0%, rgba(95, 165, 245, 0.14), transparent 55%),
    linear-gradient(160deg, var(--mkl-navy) 0%, var(--mkl-navy-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 56px);
  min-height: 100vh;
}
@media (max-width: 1023px) { .mkl-hero { min-height: 0; padding: 24px 24px 28px; } }

.mkl-hero::after { /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

.mkl-plan { /* the leasing plan drawn behind the copy */
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: .9;
}
.mkl-plan .lot { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.mkl-plan .lot.lit { fill: rgba(95,165,245,0.16); stroke: rgba(95,165,245,0.45); animation: mkl-lit 9s ease-in-out infinite; }
.mkl-plan .lot.lit:nth-of-type(3n) { animation-delay: -3s; }
.mkl-plan .lot.lit:nth-of-type(3n+1) { animation-delay: -6s; }
.mkl-plan .atrium { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 1; stroke-dasharray: 3 5; }
.mkl-plan .spine { stroke: rgba(255,255,255,0.10); stroke-width: 1; }
.mkl-plan .dot { fill: var(--mkl-blue); filter: drop-shadow(0 0 12px rgba(19,121,240,.9)); animation: mkl-pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.mkl-plan .ring { fill: none; stroke: var(--mkl-blue-soft); stroke-width: 1.2; opacity: 0; animation: mkl-ring 3.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mkl-lit { 0%, 100% { fill: rgba(95,165,245,0.06); stroke: rgba(95,165,245,0.25); } 50% { fill: rgba(95,165,245,0.22); stroke: rgba(95,165,245,0.6); } }
@keyframes mkl-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes mkl-ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }

.mkl-hero > :not(.mkl-plan) { position: relative; z-index: 1; }
.mkl-brand img { height: 36px; width: auto; display: block; }
@media (max-width: 1023px) { .mkl-brand img { height: 30px; } }

.mkl-copy { max-width: 34rem; margin-block: auto; padding-block: clamp(32px, 6vh, 80px); }
.mkl-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #C9D3F0;
  margin: 0 0 22px;
}
html[dir="rtl"] .mkl-eyebrow { letter-spacing: 0; font-size: 13px; }
.mkl-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--mkl-blue-soft); }
.mkl-headline {
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.04; letter-spacing: -0.02em; font-weight: 600; margin: 0;
  text-wrap: balance;
}
html[dir="rtl"] .mkl-headline { letter-spacing: 0; line-height: 1.3; }
.mkl-headline em { font-style: normal; color: var(--mkl-blue-soft); }
.mkl-headline .mkl-period { display: inline-block; width: .28em; height: .28em; border-radius: 50%; background: var(--mkl-blue); margin-inline-start: .12em; vertical-align: .05em; }
.mkl-sub { margin: 22px 0 0; font-size: 1.05rem; line-height: 1.6; color: #C9D3F0; max-width: 30rem; }
@media (max-width: 1023px) {
  .mkl-copy { padding-block: 22px 6px; }
  .mkl-sub { display: none; }
  .mkl-headline { font-size: 1.7rem; }
}

.mkl-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mkl-points li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05);
  font-size: 13.5px; color: #E6EAF5; backdrop-filter: blur(6px);
}
.mkl-points i { font-size: 15px; color: var(--mkl-blue-soft); }
@media (max-width: 1023px) { .mkl-points { display: none; } }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mkl-brand, .mkl-eyebrow, .mkl-headline, .mkl-sub, .mkl-points, .mkl-form > * { animation: mkl-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .mkl-eyebrow { animation-delay: .08s; } .mkl-headline { animation-delay: .16s; } .mkl-sub { animation-delay: .26s; } .mkl-points { animation-delay: .36s; }
  .mkl-form > :nth-child(1) { animation-delay: .12s; } .mkl-form > :nth-child(2) { animation-delay: .18s; } .mkl-form > :nth-child(3) { animation-delay: .24s; }
  .mkl-form > :nth-child(4) { animation-delay: .30s; } .mkl-form > :nth-child(5) { animation-delay: .36s; } .mkl-form > :nth-child(n+6) { animation-delay: .42s; }
}
@media (prefers-reduced-motion: reduce) { .mkl-plan .lot.lit, .mkl-plan .dot, .mkl-plan .ring { animation: none; } }
@keyframes mkl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- panel (the form) ---------- */
.mkl-panel { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
@media (max-width: 1023px) { .mkl-panel { min-height: 0; } }
.mkl-topbar { display: flex; justify-content: flex-end; align-items: center; padding: 22px clamp(20px, 4vw, 48px) 0; }
.mkl-lang {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--mkl-hair); background: var(--mkl-surface); color: var(--mkl-muted);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s;
}
.mkl-lang:hover { border-color: var(--mkl-blue); color: var(--mkl-text); }
.mkl-lang i { font-size: 15px; }

.mkl-formwrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px clamp(20px, 4vw, 48px) 40px; }
.mkl-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.mkl-title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; color: var(--mkl-text); }
html[dir="rtl"] .mkl-title { letter-spacing: 0; }
.mkl-lead { margin: 6px 0 4px; color: var(--mkl-muted); font-size: 15px; line-height: 1.5; }

.mkl-field { display: flex; flex-direction: column; gap: 6px; }
.mkl-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mkl-label { font-size: 13.5px; font-weight: 500; color: var(--mkl-text); }
.mkl-form .kt-input {
  min-height: 46px; height: 46px; padding-inline: 14px; border-radius: 10px; font-size: 15px;
  border: 1px solid var(--mkl-input); background: var(--mkl-surface); color: var(--mkl-text);
  box-shadow: 0 1px 2px rgba(27,37,89,.04); transition: border-color .15s, box-shadow .15s;
}
.mkl-form .kt-input input { font: inherit; color: inherit; background: transparent; height: 100%; }
.mkl-form .kt-input:hover { border-color: #AEB8CC; }
/* One focus ring per field, drawn by the box the user sees. The page-wide :focus-visible outline above
   would otherwise add a second, rectangular ring: around the email box (outside its own soft ring) and
   around the bare <input> inside a password wrapper, next to the eye. */
.mkl-form .kt-input:focus, .mkl-form .kt-input:focus-visible,
.mkl-form .kt-input input:focus, .mkl-form .kt-input input:focus-visible,
.mkl-form .kt-textarea:focus-visible { outline: none; }
.mkl-form .kt-input input:focus { box-shadow: none; }
.mkl-form .kt-input:focus,
.mkl-form .kt-input:has(> input:focus),
.mkl-form .kt-textarea:focus {
  border-color: var(--mkl-blue); box-shadow: 0 0 0 4px rgba(19,121,240,.14); outline: none;
}
/* Browsers without :has() still get the wrapper ring. */
@supports not selector(:has(*)) {
  .mkl-form .kt-input:focus-within { border-color: var(--mkl-blue); box-shadow: 0 0 0 4px rgba(19,121,240,.14); }
}
.mkl-form .kt-input::placeholder, .mkl-form .kt-input input::placeholder { color: #98A2BE; }
.mkl-form .kt-form-message { font-size: 12.5px; color: var(--mkl-danger); }
.mkl-form .kt-form-message.mkl-ok { color: #137333; background: #E6F4EC; border: 1px solid #BFE3CD; border-radius: 10px; padding: 10px 12px; }
.mkl-link { font-size: 13.5px; color: var(--mkl-blue-deep); text-decoration: none; font-weight: 500; }
.mkl-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.mkl-remember { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mkl-muted); cursor: pointer; user-select: none; }
.mkl-remember input { width: 18px; height: 18px; accent-color: var(--mkl-blue-deep); margin: 0; }

.mkl-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #fff;
  background: linear-gradient(180deg, #1F7FF2 0%, var(--mkl-blue-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px rgba(15,107,220,.7);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.mkl-submit:hover { filter: brightness(1.04); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 14px 28px -10px rgba(15,107,220,.8); }
.mkl-submit:active { transform: translateY(1px); }
.mkl-submit i { font-size: 16px; transition: transform .2s ease; }
.mkl-submit:hover i.ki-arrow-right { transform: translateX(3px); }
html[dir="rtl"] .mkl-submit:hover i.ki-arrow-right { transform: translateX(-3px) scaleX(-1); }
html[dir="rtl"] .mkl-submit i.ki-arrow-right { transform: scaleX(-1); }
.mkl-submit[disabled] { opacity: .7; cursor: progress; }

.mkl-or { display: flex; align-items: center; gap: 12px; color: #98A2BE; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
html[dir="rtl"] .mkl-or { letter-spacing: 0; }
.mkl-or::before, .mkl-or::after { content: ""; flex: 1; height: 1px; background: var(--mkl-hair); }

.mkl-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkl-alt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 12px; border: 1px solid var(--mkl-hair); background: var(--mkl-surface);
  color: var(--mkl-text); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.mkl-alt-btn:hover { border-color: var(--mkl-navy); background: #F7F9FD; }
html.dark .mkl-alt-btn:hover { background: #1B2350; border-color: var(--mkl-blue-soft); }
.mkl-alt-btn:active { transform: translateY(1px); }
.mkl-alt-btn i { font-size: 16px; color: var(--mkl-blue-deep); }
@media (max-width: 380px) { .mkl-alt { grid-template-columns: 1fr; } }

.mkl-foot { padding: 0 clamp(20px, 4vw, 48px) 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #98A2BE; }
.mkl-foot a { color: inherit; text-decoration: none; }
.mkl-foot a:hover { color: var(--mkl-text); }

/* Validation plugin output (FormValidation Bootstrap5 adapter writes its own containers). */
.mkl-form .fv-plugins-message-container, .mkl-form .fv-help-block, .mkl-form .invalid-feedback {
  color: var(--mkl-danger); font-size: 12.5px; line-height: 1.35; margin-top: 2px; display: block;
}
.mkl-form .fv-plugins-message-container:empty { display: none; }

/* ======================================================================================
   Shared pieces of the other auth pages (change / forgot / reset password, two-step, passkey,
   account status, access denied). Same tokens as the sign-in form above.
   ====================================================================================== */

/* ---------- password box with the eye ---------- */
.mkl-form .mkl-secret { display: flex; align-items: center; gap: 4px; padding-inline-end: 6px; }
.mkl-form .mkl-secret input { flex: 1; min-width: 0; border: 0; padding: 0; outline: none; }
.mkl-eye {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #8A93AE; cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
}
.mkl-eye i { font-size: 18px; color: inherit; }
.mkl-eye:hover { color: var(--mkl-text); background: rgba(27,37,89,.05); }
/* Keyboard focus on the eye: a small ring of its own, inside the field — not a second field ring. */
body.mkl .mkl-eye:focus-visible { outline: none; color: var(--mkl-blue-deep); background: rgba(19,121,240,.08); box-shadow: 0 0 0 2px var(--mkl-blue); }
html.dark .mkl-eye:hover { background: rgba(255,255,255,.06); }

/* ---------- page heading ---------- */
.mkl-badge {
  position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; color: #fff;
  background: radial-gradient(120% 120% at 100% 100%, rgba(19,121,240,.55), transparent 60%), linear-gradient(160deg, var(--mkl-navy) 0%, var(--mkl-navy-deep) 100%);
  box-shadow: 0 12px 26px -14px rgba(17,24,64,.9), inset 0 1px 0 rgba(255,255,255,.12);
}
.mkl-badge i { font-size: 24px; color: #fff; }
.mkl-badge::after { /* the lit unit, as in the plan */
  content: ""; position: absolute; top: -3px; inset-inline-end: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--mkl-blue); border: 2px solid var(--mkl-canvas); box-shadow: 0 0 10px rgba(19,121,240,.8);
}
.mkl-badge.is-warn::after { background: var(--mkl-amber); box-shadow: 0 0 10px rgba(245,165,36,.8); }
.mkl-badge.is-danger::after { background: #E5484D; box-shadow: 0 0 10px rgba(229,72,77,.7); }
.mkl-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mkl-code-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--mkl-hair); background: var(--mkl-surface);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--mkl-muted); font-variant-numeric: tabular-nums;
}

/* ---------- notes and alerts ---------- */
.mkl-note, .mkl-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.5; border: 1px solid;
}
.mkl-note i, .mkl-alert i { font-size: 17px; line-height: 1.3; flex: none; }
.mkl-note { background: #FFF8EB; border-color: #F6DDAE; color: #6B4A0E; }
.mkl-note i { color: #C98306; }
.mkl-note.is-info { background: #EEF5FE; border-color: #CFE2FB; color: #1B3A6B; }
.mkl-note.is-info i { color: var(--mkl-blue-deep); }
.mkl-alert.is-error { background: #FDEEEC; border-color: #F4C7C2; color: var(--mkl-danger); }
.mkl-alert.is-ok { background: #E8F5EE; border-color: #BFE3CD; color: #137333; }
.mkl-alert.hidden { display: none; }
/* A box a page script fills and shows with style.display = 'block'. */
.mkl-alert.is-plain { display: block; }
html.dark .mkl-note { background: rgba(245,165,36,.10); border-color: rgba(245,165,36,.35); color: #F7D9A3; }
html.dark .mkl-note.is-info { background: rgba(19,121,240,.12); border-color: rgba(95,165,245,.35); color: #CFE2FB; }
html.dark .mkl-alert.is-error { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.4); color: #FFB4B0; }
html.dark .mkl-alert.is-ok { background: rgba(48,164,108,.12); border-color: rgba(48,164,108,.4); color: #A7E3C2; }

/* ---------- small text, links and secondary actions ---------- */
.mkl-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mkl-muted); }
.mkl-actions { display: flex; flex-direction: column; gap: 10px; }
.mkl-actions .mkl-alt-btn, .mkl-actions .mkl-submit { width: 100%; }
a.mkl-submit { text-decoration: none; }
.mkl-back { display: flex; justify-content: center; }
.mkl-textlink {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--mkl-blue-deep); text-decoration: none; cursor: pointer;
}
.mkl-textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.mkl-textlink i { font-size: 15px; }
html[dir="rtl"] .mkl-form .ki-arrow-left { transform: scaleX(-1); }
.mkl-swap { display: flex; justify-content: center; margin-top: 2px; }
.mkl-hint.is-center { text-align: center; }
.mkl-form.hidden { display: none; }
/* A field group a page script shows and hides with style.display = 'block' (two-step's code boxes). */
.mkl-codebox > * + * { margin-top: 6px; }
.mkl-codebox > .mkl-swap { margin-top: 10px; }

/* ---------- password rules (change password) ---------- */
.mkl-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.mkl-rules li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mkl-muted); transition: color .15s; }
.mkl-rules li::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mkl-input);
  background: var(--mkl-surface) center / 9px no-repeat; transition: background-color .15s, border-color .15s;
}
.mkl-rules li.is-met { color: #137333; }
.mkl-rules li.is-met::before {
  border-color: #1F9D55; background-color: #1F9D55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
html.dark .mkl-rules li.is-met { color: #A7E3C2; }
@media (max-width: 420px) { .mkl-rules { grid-template-columns: 1fr; } }

/* ---------- one-time code (two-step) ---------- */
.mkl-form .kt-input.mkl-code {
  height: 60px; min-height: 60px; text-align: center; font-size: 26px; font-weight: 600;
  letter-spacing: .5em; padding-inline-start: calc(14px + .5em);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mkl-form .kt-input.mkl-code::placeholder { color: #C3CADB; }
.mkl-form .kt-input.mkl-code-sm { text-align: center; letter-spacing: .12em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- account status: contacts, support dialog ---------- */
.mkl-contacts { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--mkl-hair); background: var(--mkl-surface); }
.mkl-contacts a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mkl-text); text-decoration: none; }
.mkl-contacts a:hover { color: var(--mkl-blue-deep); }
.mkl-contacts i { font-size: 16px; color: var(--mkl-blue-deep); }
.mkl-dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(17,24,64,.55); backdrop-filter: blur(3px); }
.mkl-dialog-backdrop.flex { display: flex; }
.mkl-dialog {
  width: 100%; max-width: 460px; padding: 26px; border-radius: 18px; background: var(--mkl-surface); color: var(--mkl-text);
  box-shadow: 0 30px 60px -20px rgba(17,24,64,.55); border: 1px solid var(--mkl-hair);
}
.mkl-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mkl-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mkl-form .kt-textarea {
  min-height: 120px; padding: 10px 14px; border-radius: 10px; font-size: 15px; line-height: 1.5;
  border: 1px solid var(--mkl-input); background: var(--mkl-surface); color: var(--mkl-text); resize: vertical;
}
.mkl-done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--mkl-muted); }
.mkl-done i { font-size: 34px; color: #1F9D55; }
.mkl-done.hidden { display: none; }

/* ---------- the spinner the page scripts put in a busy button (Bootstrap class names) ---------- */
.mkl .spinner-border {
  display: inline-block; width: 1em; height: 1em; margin-inline-end: 6px; vertical-align: -0.125em;
  border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: mkl-spin .7s linear infinite;
}
@keyframes mkl-spin { to { transform: rotate(360deg); } }
