html, body.mk-auth-body { height: 100%; margin: 0; }
.mk-auth-body { background: var(--bs-body-bg); font-family: 'Changa','Cairo',sans-serif; }
.mk-auth-wrap { display: flex; min-height: 100vh; }

/* Brand panel */
.mk-auth-brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 42%; flex-shrink: 0;
  background: linear-gradient(150deg, #0f172a 0%, #1e1b4b 55%, #0f2044 100%);
  position: relative; overflow: hidden; padding: 3rem 3.5rem;
}
.brand-inner { position: relative; z-index: 2; }
.brand-logo-link { display: inline-flex; margin-bottom: 3rem; }
.brand-logo { height: 36px; filter: brightness(0) invert(1); }
/* Eyebrow label */
.brand-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a5b4fc; margin-bottom: 1.25rem; }
.brand-eyebrow i { font-size: .7rem; }

/* Radial tip constellation */
.tiporbit { position: relative; width: 300px; height: 300px; max-width: 100%; margin: .5rem auto 0; --R: 130px; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(148,163,184,.12); }
.orbit-ring::after { content: ''; position: absolute; inset: 30px; border-radius: 50%; border: 1px dashed rgba(148,163,184,.08); }

/* Sweeping pointer line from centre to the active point */
.orbit-pointer { position: absolute; left: 50%; top: 50%; width: 2px; height: var(--R);
  transform-origin: 50% 100%; transform: translate(-50%,-100%) rotate(0deg);
  transition: transform .7s cubic-bezier(.45,.05,.25,1);
  background: linear-gradient(to top, rgba(129,140,248,0), rgba(129,140,248,.7)); pointer-events: none; }

/* Points around the ring */
.orbit-dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(148,163,184,.35); cursor: pointer;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--R)));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s; }
.orbit-dot:hover { background: rgba(148,163,184,.75); }
.orbit-dot.is-active { background: #c7d2fe; transform: rotate(var(--a)) translateY(calc(-1 * var(--R))) scale(2.3); animation: orbitPulse 2.2s ease-out infinite; }
@keyframes orbitPulse {
  0%   { box-shadow: 0 0 10px 1px rgba(129,140,248,.8), 0 0 0 0 rgba(129,140,248,.45); }
  70%  { box-shadow: 0 0 10px 1px rgba(129,140,248,.8), 0 0 0 6px rgba(129,140,248,0); }
  100% { box-shadow: 0 0 10px 1px rgba(129,140,248,.8), 0 0 0 0 rgba(129,140,248,0); }
}

/* Centre reveal */
.orbit-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 52px; pointer-events: none; }
.orbit-num { font-size: .7rem; font-weight: 700; letter-spacing: .18em; color: #818cf8; margin-bottom: .55rem; }
.orbit-tip { font-size: .95rem; line-height: 1.55; font-weight: 600; color: #e2e8f0; margin: 0; min-height: 3em; display: flex; align-items: center; transition: opacity .3s ease; }

.brand-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%); top: -80px; right: -120px; pointer-events: none; }
.brand-glow--2 { width: 360px; height: 360px; top: auto; right: auto; bottom: -120px; left: -100px; background: radial-gradient(circle, rgba(56,189,248,.18) 0%, transparent 70%); }

/* Form panel */
.mk-auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; overflow-y: auto; }
.mk-auth-form-wrap { width: 100%; max-width: 420px; }
.auth-title { font-size: 1.6rem; font-weight: 700; color: var(--bs-body-color); margin-bottom: .375rem; letter-spacing: -.02em; }
.auth-sub { font-size: .88rem; color: var(--bs-secondary-color,#6c757d); margin: 0; }
.auth-label { display: block; font-size: .8rem; font-weight: 600; color: var(--bs-body-color); margin-bottom: .375rem; }

/* Inputs */
.auth-input-group { position: relative; display: flex; align-items: center; }
.auth-input-icon { position: absolute; inset-inline-start: 12px; font-size: .8rem; color: var(--bs-secondary-color,#6c757d); pointer-events: none; z-index: 2; }
.auth-input { width: 100%; height: 44px; padding-block: 0; padding-inline: 36px 44px; font-size: .9rem; color: var(--bs-body-color); background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); border-radius: 10px; outline: none; transition: border-color .18s, box-shadow .18s; }
.auth-input:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb),.15); }
.auth-input.is-invalid { border-color: var(--bs-danger); }
.auth-input::placeholder { opacity: .45; }
.auth-input-toggle { position: absolute; inset-inline-end: 10px; background: none; border: none; padding: 6px; color: var(--bs-secondary-color,#6c757d); cursor: pointer; font-size: .82rem; z-index: 2; }
.auth-field-error { font-size: .78rem; color: var(--bs-danger); margin-top: .3rem; }
.auth-field-help { font-size: .74rem; color: var(--bs-secondary-color,#6c757d); margin-top: .3rem; line-height: 1.4; }
.auth-alert { border-radius: 10px; font-size: .85rem; }

/* Links & buttons */
.auth-link-small { font-size: .78rem; color: var(--bs-primary); text-decoration: none; }
.auth-link-small:hover { text-decoration: underline; }
.auth-link-primary { color: var(--bs-primary); text-decoration: none; }
.auth-link-primary:hover { text-decoration: underline; }
.btn-auth-primary { display: flex; align-items: center; justify-content: center; height: 46px; background: var(--mk-accent-solid, var(--bs-primary)); color: #fff; border: none; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: opacity .15s, transform .1s, box-shadow .15s; box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb),.35); }
.btn-auth-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb),.4); }
.btn-auth-primary:active { transform: translateY(0); }
.btn-auth-primary:disabled { opacity: .65; transform: none; cursor: not-allowed; }
.btn-auth-ghost { display: flex; align-items: center; justify-content: center; height: 46px; background: var(--bs-body-bg); color: var(--bs-body-color); border: 1.5px solid var(--bs-border-color); border-radius: 10px; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.btn-auth-ghost:hover { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb),.04); color: var(--bs-body-color); }
.auth-divider { display: flex; align-items: center; gap: .875rem; margin: .75rem 0; color: var(--bs-secondary-color,#9ca3af); font-size: .78rem; font-weight: 500; }
.auth-divider::before,.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--bs-border-color); }

/* Password strength */
.auth-strength { margin-top: .55rem; }
.auth-strength .progress { height: 5px; border-radius: 999px; background: var(--bs-tertiary-bg, #e9ecef); overflow: hidden; }
.auth-strength .progress-bar { border-radius: 999px; transition: width .25s ease; }
.auth-strength span { display: inline-block; font-size: .72rem; color: var(--bs-secondary-color,#6c757d); margin-top: .35rem; }

/* Invalid link box */
.auth-invalid-box { display: flex; gap: .875rem; align-items: flex-start; border-radius: 12px; padding: 1rem 1.1rem; background: rgba(var(--bs-danger-rgb),.08); border: 1px solid rgba(var(--bs-danger-rgb),.25); }
.auth-invalid-box > i { color: var(--bs-danger); font-size: 1.4rem; line-height: 1.2; flex-shrink: 0; }
.auth-invalid-box h6 { color: var(--bs-body-color); font-weight: 700; margin: 0 0 .25rem; }
.auth-invalid-box p { color: var(--bs-secondary-color,#6c757d); margin: 0; font-size: .85rem; }

@media (min-width: 992px) { .mk-auth-brand { display: flex; } }
