/* Markazi — staff sign-in ("The Atrium").
   Hand-authored, loaded only by Pages/Auth/_LoginMarkazi.cshtml (Markazi profile). Aqari's page
   never links it. Palette = Atrium Navy (docs/markazi/themes/1-atrium-navy/tokens.css); fonts =
   the self-hosted IBM Plex pair the themes already ship. */

@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; }
.mkl-form .kt-input:focus, .mkl-form .kt-input:focus-within {
  border-color: var(--mkl-blue); box-shadow: 0 0 0 4px rgba(19,121,240,.14); outline: none;
}
.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 { transform: translateX(3px); }
html[dir="rtl"] .mkl-submit:hover i { transform: translateX(-3px) scaleX(-1); }
html[dir="rtl"] .mkl-submit i { 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; }
