/* ─────────────────────────────────────────────────────────────────────────────
   Auth pages · split-screen layout
   Loaded by user.auth.layouts.master only (login, register, forgot password,
   OTP, 2FA, email verification). The brand colour is stamped in the layout,
   so every shade here follows General Settings → primary colour.
   ────────────────────────────────────────────────────────────────────────── */

.ax-body {
  --ax-font-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --ax-font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --ax-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ax-brand: var(--color-primary);
  --ax-ink: color-mix(in srgb, var(--ax-brand) 18%, #05060c);
  --ax-radius: 14px;
  --ax-field-h: 52px;

  margin: 0;
  min-height: 100vh;
  font-family: var(--ax-font-body);
  background: var(--ax-page);
  color: var(--ax-content);
}

[data-theme="dark"] .ax-body,
.ax-body {
  --ax-page: #07080d;
  --ax-surface: #0e1017;
  --ax-field: #11131b;
  --ax-line: #232634;
  --ax-line-strong: #31354a;
  --ax-headline: #f4f5fa;
  --ax-content: #c4c8d6;
  --ax-muted: #8b90a3;
}

[data-theme="light"] .ax-body {
  --ax-page: #ffffff;
  --ax-surface: #f6f7fb;
  --ax-field: #ffffff;
  --ax-line: #e3e6ef;
  --ax-line-strong: #cfd4e2;
  --ax-headline: #0b1020;
  --ax-content: #3c4457;
  --ax-muted: #6b7385;
}

/* ── Shell ───────────────────────────────────────────────────────────────── */
/* The brand panel is pinned to the viewport on desktop and the form side
   scrolls next to it, so a long form never reveals an empty strip. */
.ax-shell { --ax-aside-w: clamp(420px, 44vw, 720px); min-height: 100vh; }

@media (min-width: 992px) {
  .ax-shell .ax-main { margin-inline-start: var(--ax-aside-w); }
}

/* ── Brand panel ─────────────────────────────────────────────────────────── */
.ax-aside {
  display: none;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--ax-aside-w);
  overflow: hidden;
  padding: clamp(24px, 4vh, 40px) clamp(32px, 3.4vw, 56px);
  color: #fff;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--ax-brand) 75%, transparent) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--ax-brand) 45%, transparent) 0%, transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--ax-brand) 55%, #0b0d1a) 0%, var(--ax-ink) 100%);
  flex-direction: column;
  isolation: isolate;
}

@media (min-width: 992px) {
  .ax-aside { display: flex; }
}

.ax-aside__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 80%);
}

.ax-aside__orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: ax-float 14s var(--ax-ease) infinite alternate;
}
.ax-aside__orb--one { width: 320px; height: 320px; top: -80px; right: -60px; background: color-mix(in srgb, var(--ax-brand) 70%, #fff); }
.ax-aside__orb--two { width: 260px; height: 260px; bottom: -60px; left: -40px; background: color-mix(in srgb, var(--ax-brand) 55%, #f2c14e); animation-delay: -6s; }

@keyframes ax-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 40px, 0) scale(1.08); }
}

.ax-aside__logo { flex: none; align-self: flex-start; }
.ax-aside__logo img { height: 40px; width: auto; object-fit: contain; display: block; }

/* ── Investment orbit scene ──────────────────────────────────────────────── */
.ax-scene {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.ax-scene__stage {
  --s: min(400px, 40vh, calc(var(--ax-aside-w) - 180px));
  position: relative;
  width: var(--s);
  height: var(--s);
}

.ax-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px dashed rgb(255 255 255 / 0.22);
  animation: ax-orbit 40s linear infinite;
}
.ax-ring--1 { width: 52%; height: 52%; animation-duration: 18s; border-style: solid; border-color: rgb(255 255 255 / 0.14); }
.ax-ring--2 { width: 78%; height: 78%; animation-duration: 30s; animation-direction: reverse; }
.ax-ring--3 { width: 100%; height: 100%; animation-duration: 46s; border-color: rgb(255 255 255 / 0.12); }

@keyframes ax-orbit { to { transform: rotate(360deg); } }

/* planets ride their ring and spin the other way so the icon stays upright */
.ax-planet {
  --p: calc(var(--s) * 0.13);
  position: absolute;
  width: var(--p);
  height: var(--p);
  margin: calc(var(--p) / -2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: calc(var(--p) * 0.42);
  color: #fff;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.25);
  animation: ax-orbit 46s linear infinite reverse;
}
.ax-ring--1 .ax-planet { animation-duration: 18s; }
.ax-ring--2 .ax-planet { animation-duration: 30s; animation-direction: normal; }

.ax-planet--a { top: 50%; left: 0; }
.ax-planet--b { top: 0; left: 50%; background: rgb(245 196 81 / 0.3); border-color: rgb(245 196 81 / 0.6); color: #fde68a; }
.ax-planet--c { top: 100%; left: 50%; }
.ax-planet--d { top: 14.6%; left: 85.4%; background: rgb(52 211 153 / 0.25); border-color: rgb(52 211 153 / 0.55); color: #a7f3d0; }

/* glowing core with a growing bar chart and trend line */
.ax-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / 0.45), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--ax-brand) 60%, #fff), var(--ax-brand) 55%, color-mix(in srgb, var(--ax-brand) 60%, #000));
  box-shadow:
    0 0 0 10px rgb(255 255 255 / 0.06),
    0 0 0 22px rgb(255 255 255 / 0.03),
    0 20px 60px -10px color-mix(in srgb, var(--ax-brand) 80%, #000),
    0 0 80px color-mix(in srgb, var(--ax-brand) 60%, transparent);
  animation: ax-breathe 4s ease-in-out infinite;
}
@keyframes ax-breathe { 50% { transform: scale(1.04); } }

.ax-core__bars {
  position: absolute;
  inset: 30% 22% 24%;
  display: flex;
  align-items: flex-end;
  gap: 8%;
}
.ax-core__bars span {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: rgb(255 255 255 / 0.85);
  transform-origin: bottom;
  animation: ax-grow 3.2s var(--ax-ease) infinite;
}
.ax-core__bars span:nth-child(1) { height: 30%; }
.ax-core__bars span:nth-child(2) { height: 46%; animation-delay: .12s; }
.ax-core__bars span:nth-child(3) { height: 40%; animation-delay: .24s; }
.ax-core__bars span:nth-child(4) { height: 68%; animation-delay: .36s; }
.ax-core__bars span:nth-child(5) { height: 92%; animation-delay: .48s; }
@keyframes ax-grow {
  0%       { transform: scaleY(0.15); opacity: .5; }
  45%, 80% { transform: scaleY(1); opacity: 1; }
  100%     { transform: scaleY(0.15); opacity: .5; }
}

.ax-core__line {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 64%;
  height: 48%;
  overflow: visible;
}
.ax-core__line path {
  fill: none;
  stroke: #fde68a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  animation: ax-trace 3.2s var(--ax-ease) infinite;
}
@keyframes ax-trace {
  0%       { stroke-dashoffset: 100; }
  45%, 80% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -100; }
}
.ax-core__arrow {
  position: absolute;
  top: 12%;
  right: 16%;
  font-size: calc(var(--s) * 0.05);
  color: #fde68a;
  animation: ax-bob 3.2s ease-in-out infinite;
}
@keyframes ax-bob { 50% { transform: translate(2px, -3px); } }

/* activity notes take turns popping in around the orbit */
.ax-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  white-space: nowrap;
  color: #fff;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.6);
  opacity: 0;
  animation: ax-note 9s var(--ax-ease) infinite;
  animation-delay: calc(var(--ax-note-i) * 3s);
}
.ax-note--1 { top: 2%;  right: -18%; }
.ax-note--2 { top: 44%; left: -26%; }
.ax-note--3 { bottom: 0; right: -12%; }

@keyframes ax-note {
  0%        { opacity: 0; transform: translateY(12px) scale(.94); }
  6%, 30%   { opacity: 1; transform: translateY(0) scale(1); }
  36%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); }
}

.ax-note__icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: 15px;
}
.ax-note--success .ax-note__icon { background: rgb(16 185 129 / 0.25); color: #6ee7b7; }
.ax-note--brand   .ax-note__icon { background: rgb(255 255 255 / 0.18); color: #fff; }
.ax-note--gold    .ax-note__icon { background: rgb(245 196 81 / 0.25); color: #fde68a; }
.ax-note__body { display: grid; line-height: 1.25; }
.ax-note__body b { font-size: 13px; font-weight: 700; }
.ax-note__body small { font-size: 11px; color: rgb(255 255 255 / 0.65); }

/* ── Panel copy (Admin → Site Sections → Auth Section) ───────────────────── */
.ax-copy { flex: none; max-width: 520px; margin-bottom: clamp(16px, 3vh, 32px); }
.ax-copy__title {
  font-family: var(--ax-font-heading);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.ax-copy__text { font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / 0.75); margin: 0; }

.ax-aside__foot { flex: none; margin: 0; font-size: 13px; color: rgb(255 255 255 / 0.55); }

/* short screens: tighter copy, the scene shrinks through --s */
@media (max-height: 720px) {
  .ax-copy__text { display: none; }
  .ax-copy__title { font-size: 24px; }
}

[dir="rtl"] .ax-note--1, [dir="rtl"] .ax-note--3 { right: auto; left: -14%; }
[dir="rtl"] .ax-note--2 { left: auto; right: -26%; }

/* ── Form side ───────────────────────────────────────────────────────────── */
.ax-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 16px;
  position: relative;
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--ax-brand) 10%, transparent), transparent 70%),
    var(--ax-page);
}

@media (min-width: 576px) { .ax-main { padding: 24px 32px; } }
@media (min-width: 1200px) { .ax-main { padding: 28px 56px; } }

.ax-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ax-topbar__logo img { height: 34px; width: auto; object-fit: contain; }
.ax-topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* theme-aware logo on the form side; the brand panel already shows it on desktop */
.ax-logo-on-light { display: none; }
[data-theme="light"] .ax-logo-on-light { display: inline-block; }
[data-theme="light"] .ax-logo-on-dark { display: none; }
@media (min-width: 992px) { .ax-topbar__logo { display: none; } }

.ax-ghost-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--ax-muted);
  text-decoration: none;
  border: 1px solid var(--ax-line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ax-ghost-link:hover { color: var(--ax-headline); border-color: var(--ax-line-strong); background: var(--ax-surface); }
@media (max-width: 479.98px) { .ax-ghost-link span { display: none; } .ax-ghost-link { width: 40px; padding: 0; justify-content: center; } }

.ax-icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ax-line);
  background: transparent;
  color: var(--ax-content);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s var(--ax-ease);
}
.ax-icon-btn:hover { color: var(--ax-headline); background: var(--ax-surface); transform: rotate(15deg); }

.ax-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.ax-foot { display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--ax-muted); }
.ax-foot a { color: var(--ax-muted); text-decoration: none; }
.ax-foot a:hover { color: var(--ax-headline); }

/* ── The form card (shared by every auth view) ───────────────────────────── */
.ax-body .auth-card {
  width: 100%;
  max-width: 440px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: ax-rise 0.6s var(--ax-ease) both;
}
.ax-body .auth-card.auth-card-lg { max-width: 520px; }

@keyframes ax-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.ax-body .auth-header { text-align: left; margin-bottom: 28px; }
.ax-body .auth-brand { display: none; } /* logo lives in the brand panel / top bar now */

.ax-body .auth-title {
  font-family: var(--ax-font-heading);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ax-headline);
  margin: 0 0 8px;
}
.ax-body .auth-subtitle { font-size: 15px; color: var(--ax-muted); margin: 0; }

.ax-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ax-content);
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
}
.ax-badge i {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary-light); color: var(--ax-brand); font-size: 12px;
}

/* fields */
.ax-body .form-group { margin-bottom: 18px; }
.ax-body .form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ax-headline);
  margin-bottom: 8px;
}
.ax-body .form-label .required { color: var(--color-danger); }

.ax-field { position: relative; }
.ax-field > .ax-field__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  z-index: 3; /* sits above .password-wrap, which is positioned too */
  color: var(--ax-muted); font-size: 16px; pointer-events: none;
  transition: color 0.2s;
}
.ax-field:focus-within > .ax-field__icon { color: var(--ax-brand); }

.ax-body .form-control {
  height: var(--ax-field-h);
  padding: 0 16px;
  font-family: var(--ax-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ax-headline);
  background: var(--ax-field);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ax-body .form-control::placeholder { color: var(--ax-muted); opacity: 0.7; font-weight: 400; }
.ax-body .form-control:hover { border-color: var(--ax-line-strong); }
.ax-body .form-control:focus {
  border-color: var(--ax-brand);
  box-shadow: 0 0 0 4px var(--color-primary-light);
  background: var(--ax-field);
}
.ax-field > .ax-field__icon ~ .form-control,
.ax-field .ax-field__icon ~ .password-wrap .form-control { padding-left: 46px; }

.ax-body .password-wrap .form-control { padding-right: 52px; }
.ax-body .password-toggle {
  right: 8px; width: 38px; height: 38px; border-radius: 10px;
  color: var(--ax-muted);
}
.ax-body .password-toggle:hover { color: var(--ax-headline); background: var(--ax-surface); }

/* bootstrap validation states on our fields */
.ax-body .was-validated .form-control:invalid,
.ax-body .form-control.is-invalid { border-color: var(--color-danger); background-image: none; }
.ax-body .was-validated .form-control:invalid:focus,
.ax-body .form-control.is-invalid:focus { box-shadow: 0 0 0 4px var(--color-danger-light); }
.ax-body .was-validated .form-control:valid,
.ax-body .form-control.is-valid { border-color: var(--ax-line); background-image: none; }
.ax-body .invalid-feedback,
.ax-error { font-size: 12.5px; margin-top: 6px; color: var(--color-danger); }
.ax-error { display: block; }
.ax-body .was-validated .ax-field:has(.form-control:invalid) ~ .invalid-feedback { display: block; }

.ax-hint { font-size: 12.5px; color: var(--ax-muted); margin-top: 6px; }

.ax-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ax-row-between .form-label { margin: 0; }

.ax-link { color: var(--ax-brand); font-weight: 700; text-decoration: none; font-size: 13px; }
.ax-link:hover { text-decoration: underline; color: var(--ax-brand); }

/* checkbox */
.ax-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ax-content); line-height: 1.5; margin: 0; }
.ax-check input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 18px; height: 18px; margin: 2px 0 0;
  border-radius: 6px;
  border: 1.5px solid var(--ax-line-strong);
  background: var(--ax-field);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ax-check input::after {
  content: ""; width: 10px; height: 6px;
  border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.18s var(--ax-ease);
}
.ax-check input:checked { background: var(--ax-brand); border-color: var(--ax-brand); }
.ax-check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.ax-check input:focus-visible { box-shadow: 0 0 0 4px var(--color-primary-light); outline: none; }
.was-validated .ax-check input:invalid { border-color: var(--color-danger); }
.ax-check a { color: var(--ax-brand); font-weight: 600; text-decoration: none; }
.ax-check a:hover { text-decoration: underline; }

/* password strength meter */
.ax-strength { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ax-strength__bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ax-strength__bars span { height: 4px; border-radius: 4px; background: var(--ax-line); transition: background 0.3s; }
.ax-strength__label { font-size: 12px; font-weight: 700; color: var(--ax-muted); min-width: 52px; text-align: right; }
.ax-strength[data-level="1"] .ax-strength__bars span:nth-child(-n+1) { background: var(--color-danger); }
.ax-strength[data-level="2"] .ax-strength__bars span:nth-child(-n+2) { background: var(--color-warning); }
.ax-strength[data-level="3"] .ax-strength__bars span:nth-child(-n+3) { background: #84cc16; }
.ax-strength[data-level="4"] .ax-strength__bars span:nth-child(-n+4) { background: var(--color-success); }

/* collapsible referral field */
.ax-collapse-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font-size: 13px; font-weight: 700; color: var(--ax-brand); cursor: pointer;
}
.ax-collapse-toggle i { transition: transform 0.25s var(--ax-ease); }
.ax-collapse-toggle[aria-expanded="true"] i { transform: rotate(45deg); }

.ax-ref-applied {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--ax-radius);
  font-size: 13.5px; color: var(--ax-content);
  background: var(--color-success-light);
  border: 1px dashed color-mix(in srgb, var(--color-success) 50%, transparent);
}
.ax-ref-applied i { color: var(--color-success); font-size: 16px; }
.ax-ref-applied b { color: var(--ax-headline); }

/* primary button */
.ax-body .btn-primary.btn-lg,
.ax-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--ax-field-h);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ax-font-heading);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-on-primary, #04110b);
  border: 0;
  font-weight: 800;
  border-radius: var(--ax-radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ax-brand) 85%, #fff) 0%, var(--ax-brand) 50%, var(--color-primary-hover) 100%);
  box-shadow: var(--shadow-primary), inset 0 1px 0 rgb(255 255 255 / 0.2);
  transition: transform 0.2s var(--ax-ease), box-shadow 0.2s, filter 0.2s;
}
.ax-body .btn-primary.btn-lg:hover,
.ax-btn:hover { color: var(--color-on-primary, #04110b); transform: translateY(-1px); filter: brightness(1.06); }
.ax-body .btn-primary.btn-lg:active,
.ax-btn:active { transform: translateY(0); }
.ax-btn i { transition: transform 0.25s var(--ax-ease); }
.ax-btn:hover i { transform: translateX(4px); }
.ax-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
}
.ax-btn:hover::after { transform: translateX(100%); transition: transform 0.8s var(--ax-ease); }
.ax-btn.is-loading { pointer-events: none; filter: saturate(0.8); }
.ax-btn.is-loading i { display: none; }
.ax-btn.is-loading::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.4); border-top-color: #fff;
  animation: ax-spin 0.7s linear infinite;
}
@keyframes ax-spin { to { transform: rotate(360deg); } }

/* divider + trust strip + footer line */
.ax-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-top: 20px; font-size: 12.5px; color: var(--ax-muted);
}
.ax-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ax-trust i { color: var(--color-success); }

.ax-body .auth-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ax-line);
  text-align: center;
  font-size: 14px;
  color: var(--ax-muted);
}
.ax-body .auth-footer a { color: var(--ax-brand); font-weight: 700; text-decoration: none; }
.ax-body .auth-footer a:hover { text-decoration: underline; }

/* OTP boxes on the shared pages */
.ax-body .otp-control {
  background: var(--ax-field);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  color: var(--ax-headline);
  font-family: var(--ax-font-heading);
}
.ax-body .otp-control:focus { border-color: var(--ax-brand); box-shadow: 0 0 0 4px var(--color-primary-light); outline: none; }
.ax-body .otp-group { justify-content: flex-start; }

/* recaptcha shouldn't overflow on phones */
.ax-body .g-recaptcha { transform-origin: left top; }
@media (max-width: 360px) { .ax-body .g-recaptcha { transform: scale(0.88); } }

/* ── RTL ─────────────────────────────────────────────────────────────────── */
[dir="rtl"] .ax-body .auth-header { text-align: right; }
[dir="rtl"] .ax-field > .ax-field__icon { left: auto; right: 16px; }
[dir="rtl"] .ax-field > .ax-field__icon ~ .form-control,
[dir="rtl"] .ax-field .ax-field__icon ~ .password-wrap .form-control { padding-left: 52px; padding-right: 46px; }
[dir="rtl"] .ax-body .password-toggle { right: auto; left: 8px; }
[dir="rtl"] .ax-topbar__actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ax-ghost-link i,
[dir="rtl"] .ax-btn i { transform: scaleX(-1); }
[dir="rtl"] .ax-strength__label { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .ax-body *, .ax-body *::before, .ax-body *::after { animation: none !important; transition: none !important; }
  .ax-note:first-of-type { opacity: 1; }
  .ax-core__line path { stroke-dashoffset: 0; }
}
