/* ============================================================================
 * Modern UI 2 — staff sign-in screens (login, forgot / reset / set password, 2FA)
 * Split layout on wide screens: a quiet form column + a product showcase panel
 * (injected by mvx-ui-auth.js). Without JS — or below 1024px — it is a single
 * centred form card. No core markup is edited.
 * ========================================================================== */
html.mvx-ui {
  --ui-accent: #4f46e5; --ui-accent-2: #7c3aed; --ui-accent-rgb: 79, 70, 229;
  --au-bg: #ffffff; --au-ink: #09090b; --au-ink-2: #3f3f46; --au-muted: #71717a; --au-faint: #a1a1aa;
  --au-line: #e4e4e7; --au-line-2: #d4d4d8; --au-input: #fff; --au-card: #fff;
  --au-ease: cubic-bezier(.16, 1, .3, 1);
  --au-font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --au-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --au-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
html.mvx-ui[data-theme="dark"] {
  --au-bg: #09090b; --au-ink: #fafafa; --au-ink-2: #d4d4d8; --au-muted: #a1a1aa; --au-faint: #71717a;
  --au-line: #27272a; --au-line-2: #3f3f46; --au-input: #0f0f12; --au-card: #111114; color-scheme: dark;
}

html.mvx-ui body.login_admin, html.mvx-ui body.authentication {
  font-family: var(--au-font) !important; font-size: 14px; color: var(--au-ink-2); background: var(--au-bg) !important;
  -webkit-font-smoothing: antialiased; min-height: 100vh; margin: 0; overflow-x: hidden;
}
html.mvx-ui body.login_admin > *, html.mvx-ui body.authentication > * { font-size: 14px; }

/* ── Form column ──────────────────────────────────────────────────────────── */
html.mvx-ui [class*="authentication-form-wrapp"] { position: relative; z-index: 2; padding: 9vh 16px 48px !important; max-width: 440px !important; }
html.mvx-ui [class*="authentication-form-wrapp"] .company-logo { padding: 0 0 28px !important; animation: au-rise .5s var(--au-ease) both; }
html.mvx-ui [class*="authentication-form-wrapp"] .company-logo img { max-height: 52px; width: auto; }
html.mvx-ui [class*="authentication-form-wrapp"] h1 {
  color: var(--au-ink) !important; font-size: 26px !important; font-weight: 650 !important; letter-spacing: -.03em; line-height: 1.2;
  margin: 0 0 6px !important; animation: au-rise .5s var(--au-ease) .05s both;
}
html.mvx-ui [class*="authentication-form-wrapp"] h1 + p, html.mvx-ui [class*="authentication-form-wrapp"] .tw-text-neutral-600 { color: var(--au-muted) !important; font-size: 14px; animation: au-rise .5s var(--au-ease) .1s both; }
html.mvx-ui [class*="authentication-form-wrapp"] > .tw-bg-white {
  background: var(--au-card) !important; border: 1px solid var(--au-line) !important; border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 12px 32px -12px rgba(9, 9, 11, .12) !important; animation: au-rise .55s var(--au-ease) .14s both;
}
html.mvx-ui [class*="authentication-form-wrapp"] label, html.mvx-ui [class*="authentication-form-wrapp"] .control-label { color: var(--au-ink-2); font-weight: 500; font-size: 13px; margin-bottom: 7px !important; }
html.mvx-ui [class*="authentication-form-wrapp"] .form-group { margin-bottom: 18px; }
html.mvx-ui [class*="authentication-form-wrapp"] .form-group.tw-mt-8 { margin-top: 0 !important; }
html.mvx-ui [class*="authentication-form-wrapp"] .form-control {
  height: 42px; border-radius: 9px; border: 1px solid var(--au-line-2); background: var(--au-input); color: var(--au-ink); font-size: 14px; padding: 9px 12px;
  box-shadow: 0 1px 2px rgba(9, 9, 11, .05); transition: border-color .15s, box-shadow .15s;
}
html.mvx-ui [class*="authentication-form-wrapp"] .form-control:hover { border-color: color-mix(in srgb, var(--au-line-2) 55%, var(--au-muted)); }
html.mvx-ui [class*="authentication-form-wrapp"] .form-control:focus { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(var(--ui-accent-rgb), .18); outline: 0; }
html.mvx-ui [class*="authentication-form-wrapp"] a { color: var(--ui-accent); font-weight: 500; text-decoration: none; transition: color .15s; }
html.mvx-ui [class*="authentication-form-wrapp"] a.text-muted { color: var(--au-muted) !important; font-size: 13px; }
html.mvx-ui [class*="authentication-form-wrapp"] a:hover, html.mvx-ui [class*="authentication-form-wrapp"] a.text-muted:hover { color: var(--au-ink) !important; }
html.mvx-ui [class*="authentication-form-wrapp"] .btn-primary, html.mvx-ui [class*="authentication-form-wrapp"] button[type="submit"] {
  height: 42px; border-radius: 9px; font-weight: 500; font-size: 14px; color: #fff; background: var(--ui-accent);
  border: 1px solid color-mix(in srgb, var(--ui-accent) 80%, #000); box-shadow: 0 1px 2px rgba(9, 9, 11, .14), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: background .15s, box-shadow .15s, transform .12s;
}
html.mvx-ui [class*="authentication-form-wrapp"] .btn-primary:hover, html.mvx-ui [class*="authentication-form-wrapp"] button[type="submit"]:hover { background: color-mix(in srgb, var(--ui-accent) 88%, #000); color: #fff; }
html.mvx-ui [class*="authentication-form-wrapp"] .btn-primary:active { transform: translateY(.5px); }
html.mvx-ui [class*="authentication-form-wrapp"] .btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(var(--ui-accent-rgb), .3); outline: 0; }
html.mvx-ui [class*="authentication-form-wrapp"] .checkbox label { color: var(--au-muted); font-weight: 400; font-size: 13px; margin: 0 !important; }
html.mvx-ui [class*="authentication-form-wrapp"] .checkbox label::before { border-radius: 5px; border-color: var(--au-line-2); background: var(--au-input); }
html.mvx-ui [class*="authentication-form-wrapp"] .checkbox input:checked + label::before { background: var(--ui-accent); border-color: var(--ui-accent); }
html.mvx-ui [class*="authentication-form-wrapp"] .checkbox input:checked + label::after { color: #fff; }
html.mvx-ui [class*="authentication-form-wrapp"] .alert { border-radius: 10px; font-size: 13.5px; animation: au-shake .4s ease; }
html.mvx-ui [class*="authentication-form-wrapp"] .alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
html.mvx-ui [class*="authentication-form-wrapp"] .alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
html.mvx-ui [class*="authentication-form-wrapp"] .text-muted { color: var(--au-muted) !important; }
html.mvx-ui .mvx-auth-foot { margin-top: 28px; font-size: 12.5px; color: var(--au-faint); display: flex; gap: 6px; align-items: center; animation: au-rise .5s var(--au-ease) .22s both; }
html.mvx-ui .mvx-auth-foot kbd { font: 500 11px/1 var(--au-mono); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--au-line); color: var(--au-muted); background: transparent; box-shadow: none; }

/* ── Split layout (≥1024px, JS adds .mvx-auth-split + the aside) ──────────── */
@media (min-width: 1024px) {
  html.mvx-ui body.mvx-auth-split { display: grid; grid-template-columns: minmax(440px, 1fr) minmax(0, 1.08fr); min-height: 100vh; }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] {
    grid-column: 1; grid-row: 1; align-self: center; justify-self: center; width: 100%; max-width: 380px !important; margin: 0 !important; padding: 48px 0 !important;
  }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] .company-logo { position: absolute; top: -12vh; left: 0; padding: 0 !important; text-align: left !important; }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] .company-logo img { margin: 0 !important; max-height: 40px; }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] .text-center { text-align: left !important; }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] h1 { text-align: left !important; font-size: 30px !important; }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] > .tw-bg-white {
    background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 8px 0 0 !important; margin: 0 !important;
  }
  html.mvx-ui body.mvx-auth-split [class*="authentication-form-wrapp"] .tw-mb-5 { margin-bottom: 26px !important; }
}

/* ── Showcase panel ───────────────────────────────────────────────────────── */
.mvx-auth-aside { display: none; }
@media (min-width: 1024px) {
  .mvx-auth-aside {
    grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
    margin: 10px 10px 10px 0; border-radius: 20px; padding: 40px 44px; color: #fafafa; background: #0b0b0f; isolation: isolate;
    font-family: var(--au-font);
  }
  .mvx-auth-aside::before { /* accent aurora */
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 80%; height: 80%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(var(--ui-accent-rgb), .55), transparent 70%); filter: blur(30px); opacity: .7;
    animation: au-drift 18s ease-in-out infinite alternate;
  }
  .mvx-auth-aside::after { /* fine grid */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  }
}
.mvx-aa-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .6); }
.mvx-aa-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); font-size: 12px; color: rgba(255, 255, 255, .75); }
.mvx-aa-pill i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }

.mvx-aa-stage { position: relative; height: 380px; margin: 24px 0; }
.mvx-aa-card {
  position: absolute; border-radius: 14px; background: rgba(24, 24, 29, .86); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); padding: 18px; color: #fafafa;
}
.mvx-aa-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.mvx-aa-big { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mvx-aa-up { font: 500 11.5px var(--au-mono); color: #34d399; background: rgba(52, 211, 153, .12); padding: 2px 6px; border-radius: 6px; }
.mvx-aa-pipe { left: 0; top: 0; width: 60%; animation: au-float 9s ease-in-out infinite; }
.mvx-aa-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 16px; }
.mvx-aa-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, rgba(var(--ui-accent-rgb), .95), rgba(var(--ui-accent-rgb), .35)); transform-origin: bottom; animation: au-grow 1.1s var(--au-ease) both; }
.mvx-aa-bars span:nth-child(1) { height: 42%; animation-delay: .35s; } .mvx-aa-bars span:nth-child(2) { height: 64%; animation-delay: .42s; }
.mvx-aa-bars span:nth-child(3) { height: 50%; animation-delay: .49s; } .mvx-aa-bars span:nth-child(4) { height: 78%; animation-delay: .56s; }
.mvx-aa-bars span:nth-child(5) { height: 60%; animation-delay: .63s; } .mvx-aa-bars span:nth-child(6) { height: 92%; animation-delay: .7s; background: linear-gradient(180deg, #fafafa, rgba(250, 250, 250, .45)); }
.mvx-aa-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10.5px var(--au-mono); color: rgba(255, 255, 255, .35); }
.mvx-aa-inv { right: 0; top: 96px; width: 44%; animation: au-float 11s ease-in-out -3s infinite; }
.mvx-aa-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12.5px; }
.mvx-aa-row:first-of-type { border-top: 0; }
.mvx-aa-row b { font-weight: 500; flex: 1; color: rgba(255, 255, 255, .88); }
.mvx-aa-row em { font-style: normal; font: 500 12px var(--au-mono); color: rgba(255, 255, 255, .6); }
.mvx-aa-av { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; color: #0b0b0f; flex: none; }
.mvx-aa-st { font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px; }
.mvx-aa-st.paid { background: rgba(52, 211, 153, .14); color: #6ee7b7; } .mvx-aa-st.due { background: rgba(251, 191, 36, .14); color: #fcd34d; } .mvx-aa-st.sent { background: rgba(var(--ui-accent-rgb), .22); color: #c7d2fe; }
.mvx-aa-toast {
  left: 6%; bottom: 4%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 12px; font-size: 13px;
  animation: au-toast .7s var(--au-ease) 1.2s both, au-float 10s ease-in-out 2s infinite;
}
.mvx-aa-toast .mvx-aa-ok { width: 30px; height: 30px; border-radius: 9px; background: rgba(52, 211, 153, .16); color: #34d399; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.mvx-aa-toast small { display: block; color: rgba(255, 255, 255, .5); font-size: 11.5px; margin-top: 1px; }
.mvx-aa-kbd { right: 5%; bottom: 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .6); animation: au-float 12s ease-in-out -6s infinite; }
.mvx-aa-kbd kbd { font: 500 11px/1 var(--au-mono); padding: 4px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fafafa; }

.mvx-aa-copy h2 { font-family: var(--au-font); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; color: #fafafa; margin: 0 0 12px; max-width: 520px; }
.mvx-aa-copy h2 em { font-family: var(--au-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: color-mix(in srgb, var(--ui-accent) 45%, #fff); }
.mvx-aa-copy p { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .58); margin: 0; max-width: 460px; }
.mvx-aa-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mvx-aa-feats span { font-size: 12px; color: rgba(255, 255, 255, .7); padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }

@keyframes au-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes au-shake { 0%, 100% { transform: none; } 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes au-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes au-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes au-toast { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes au-drift { from { transform: translate(0, 0); } to { transform: translate(-12%, 18%); } }

@media (prefers-reduced-motion: reduce) {
  html.mvx-ui body *, .mvx-auth-aside::before { animation: none !important; transition: none !important; }
}
