* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Outfit", Inter, Arial, sans-serif;
  background: transparent;
  color: #eef3ff;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.auth-bg-3d {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.auth-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.6;
  animation: authFloat 11s ease-in-out infinite;
}
.auth-orb.one { width: 320px; height: 320px; background: #2d6cff; top: -70px; left: -70px; }
.auth-orb.two { width: 380px; height: 380px; background: #5b4dff; right: -120px; top: 20%; animation-delay: -3s; }
.auth-orb.three { width: 280px; height: 280px; background: #355bff; left: 18%; bottom: -100px; animation-delay: -6s; }
.auth-bg-3d::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 120deg, transparent 0deg, rgba(96, 165, 250, 0.12) 90deg, transparent 180deg);
  filter: blur(20px);
  animation: authSpinSlow 24s linear infinite;
}
@keyframes authSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes authFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.04); }
}
.auth-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  background: rgba(9, 16, 38, 0.8);
  border-bottom: 1px solid rgba(115, 145, 245, 0.25);
}
.auth-logo {
  color: #f3f7ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}
.auth-logo-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.auth-logo-text { color: #f3f7ff; font-weight: 700; font-size: 22px; }
.auth-logo-dot { color: #56a1ff; font-weight: 700; font-size: 22px; }
.auth-nav-actions { display: flex; gap: 10px; }
.auth-btn {
  border: 1px solid #3b56a2;
  border-radius: 11px;
  padding: 9px 14px;
  background: #12214b;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.28); }
.auth-btn.primary { background: linear-gradient(135deg,#2d6cff,#7d4bff); border: 0; }
.auth-wrap {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.auth-card {
  width: 100%;
  max-width: 510px;
  background: rgba(15, 23, 48, 0.88);
  border: 1px solid rgba(120, 150, 255, 0.28);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(5, 7, 18, 0.48);
  transform-style: preserve-3d;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.auth-card:hover { transform: rotateX(2deg) rotateY(-2deg); transition: transform .35s ease; }
.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  pointer-events: none;
}
h1 { margin: 0 0 8px; font-size: 28px; }
p { margin: 0 0 18px; color: #b0c1ef; }
label { display: block; font-size: 13px; margin-bottom: 6px; }
input,select {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2c447f;
  background: #101a37;
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}
button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 12px;
  background: linear-gradient(135deg, #2d6cff, #834bff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  color: #bfccf4;
  font-size: 13px;
}
.remember-row input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-top: 14px;
  flex-wrap: wrap;
}
a { color: #9dc0ff; text-decoration: none; }
#toast-root {
  position: fixed;
  right: 14px;
  top: 92px;
  display: grid;
  gap: 8px;
  z-index: 2000;
}
.toast {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #141d3d;
}
.toast.success { border-color: #2ecb8e; }
.toast.error { border-color: #ff6289; }

/* —— AXSPOT · infinite 3D globe + umbrella (secure the globe) —— */
.auth-globe-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  perspective: 1400px;
}
.auth-globe-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotateX(68deg) translateY(-8%);
  animation: authGridDrift 48s linear infinite;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 10%, transparent 72%);
}
@keyframes authGridDrift {
  from { transform: rotateX(68deg) translateY(-8%) translateZ(0); }
  to { transform: rotateX(68deg) translateY(-8%) translateZ(0) translateX(-56px); }
}
.auth-globe-sphere {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(115vw, 920px);
  height: min(115vw, 920px);
  transform: translate(-50%, -50%) rotateX(14deg);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 72% 58%, rgba(45, 108, 255, 0.38), transparent 52%),
    radial-gradient(circle at 50% 88%, rgba(6, 182, 212, 0.22), transparent 48%),
    linear-gradient(160deg, rgba(8, 18, 48, 0.95), rgba(15, 47, 122, 0.55));
  box-shadow:
    inset 0 -50px 100px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(37, 99, 235, 0.25);
  animation: authGlobeSpin 72s linear infinite;
}
@keyframes authGlobeSpin {
  from { transform: translate(-50%, -50%) rotateX(14deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(14deg) rotateY(360deg); }
}
.auth-umbrella-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(88vw, 520px);
  height: 240px;
  transform: translateX(-50%);
  border-radius: 260px 260px 0 0;
  border: 2px solid rgba(147, 197, 253, 0.35);
  border-bottom: none;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), transparent);
  box-shadow: 0 -20px 80px rgba(59, 130, 246, 0.18);
  animation: authUmbrellaPulse 7s ease-in-out infinite;
}
@keyframes authUmbrellaPulse {
  0%, 100% { opacity: 0.75; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.12); }
}
.auth-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.auth-product {
  font-size: 11px;
  color: #93c5fd;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.auth-superadmin-hint {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 13px;
  color: #cbd5e1;
}
.auth-superadmin-hint summary {
  cursor: pointer;
  font-weight: 600;
  color: #e2e8f0;
}
.auth-superadmin-hint .hint {
  margin: 10px 0 8px;
  line-height: 1.45;
}
.auth-superadmin-hint .hint code {
  font-size: 12px;
  color: #93c5fd;
}
.auth-btn.subtle {
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  cursor: pointer;
}
.auth-btn.subtle:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: #fff;
}

/* ==== AXSPOT auth — premium light card (black text on white) ==== */
.auth-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  backdrop-filter: blur(12px);
}

.auth-logo-text,
.auth-logo-dot {
  color: #0f172a !important;
}

.auth-product {
  color: #64748b !important;
}

.auth-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #dbe4f5 !important;
}

.auth-btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.auth-card {
  position: relative;
  background: #ffffff !important;
  border: 1px solid #dbe4f5 !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
}

.auth-card::after {
  border-color: rgba(37, 99, 235, 0.18) !important;
}

.auth-card:hover {
  transform: translateY(-2px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14) !important;
}

.auth-card h1 {
  color: #0b1220 !important;
}

.auth-card p {
  color: #475569 !important;
}

.auth-card label {
  color: #334155 !important;
  font-weight: 600;
}

.auth-card input,
.auth-card select {
  background: #ffffff !important;
  color: #0b1220 !important;
  border: 1px solid #cbd5e1 !important;
}

.auth-card input:focus,
.auth-card select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.auth-card button[type="submit"] {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  color: #ffffff !important;
}

.auth-card .links a {
  color: #2563eb !important;
}

.auth-superadmin-hint {
  background: #f8fbff !important;
  border: 1px solid #dbe4f5 !important;
  color: #0f172a !important;
}

.auth-superadmin-hint summary {
  color: #0f172a !important;
}

.auth-superadmin-hint .hint {
  color: #334155 !important;
}

.auth-superadmin-hint .hint code {
  color: #1d4ed8 !important;
}

.auth-btn.subtle {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

.remember-row {
  color: #334155 !important;
}

#toast-root .toast {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #dbe4f5 !important;
}

/* ==== AXSPOT auth world-class video + dark glass navbar (final authority) ==== */
.auth-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  transform: translate(-50%, -50%) scale(1.08);
  border: 0;
}

.auth-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(147, 197, 253, 0.28), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(96, 165, 250, 0.22), transparent 46%),
    linear-gradient(155deg, rgba(12, 34, 88, 0.42) 0%, rgba(20, 54, 120, 0.36) 52%, rgba(14, 41, 102, 0.42) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
}

.auth-nav {
  background: rgba(2, 10, 29, 0.72) !important;
  border-bottom: 1px solid rgba(147, 197, 253, 0.35) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.auth-logo-text,
.auth-logo-dot {
  color: #f8fafc !important;
}

.auth-product {
  color: #bfdbfe !important;
}

.auth-btn {
  background: rgba(15, 23, 42, 0.72) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.55) !important;
}

.auth-btn:hover {
  background: rgba(30, 41, 59, 0.92) !important;
}

.auth-btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.auth-btn,
.auth-card button[type="submit"] {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease,
    background 0.3s ease,
    border-color 0.3s ease !important;
}

.auth-btn:hover,
.auth-card button[type="submit"]:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.35),
    0 0 30px rgba(59, 130, 246, 0.2);
}

.auth-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-card button[type="submit"].is-loading {
  pointer-events: none;
  opacity: 0.95;
}

.ax-loading-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: url("favicon.png") center/cover no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 0 20px rgba(96, 165, 250, 0.35);
  transform-style: preserve-3d;
  animation: axLogoSpin3D 1s linear infinite;
}

@keyframes axLogoSpin3D {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  50% { transform: rotateY(180deg) rotateX(20deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}

.auth-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(147, 197, 253, 0.45) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.auth-wrap,
.auth-nav {
  position: relative;
  z-index: 3;
}

/* Fully disable legacy 3D background layers on auth pages. */
.auth-globe-stage,
.auth-bg-3d,
.auth-orb,
.auth-globe-grid,
.auth-globe-sphere,
.auth-umbrella-glow {
  display: none !important;
  animation: none !important;
}

/* Axencia main-site parity surface for auth pages */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 74%);
}

/* ==== Signin/Signup final world-class parity layer ==== */
.auth-nav {
  padding: 16px 24px !important;
  background: rgba(8, 14, 30, 0.72) !important;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3) !important;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35) !important;
}

.auth-logo-text,
.auth-logo-dot {
  font-size: 1.3rem !important;
  letter-spacing: -0.02em !important;
}

.auth-wrap {
  padding: 40px 18px !important;
}

.auth-card {
  max-width: 540px !important;
  border-radius: 20px !important;
  padding: 28px 26px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.88)) !important;
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  box-shadow:
    0 24px 70px rgba(2, 6, 23, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset !important;
}

.auth-card h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.2rem) !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 8px !important;
}

.auth-card p {
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.auth-card label {
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card input,
.auth-card select {
  min-height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid #bfdbfe !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-card input:hover,
.auth-card select:hover {
  border-color: #93c5fd !important;
}

.auth-card input:focus,
.auth-card select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18) !important;
}

.auth-card button[type="submit"] {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25) inset !important;
}

.auth-card button[type="submit"]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #1e40af 100%) !important;
}

.auth-links,
.links {
  margin-top: 16px !important;
}

.links a {
  position: relative;
  font-weight: 600;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.links a:hover::after {
  transform: scaleX(1);
}

/* ==== Auth final override v11 (force-visible world-class look) ==== */
body.auth-worldclass,
body {
  background: #0a0a0f !important;
  color: #e8e8ed !important;
}

body.auth-worldclass .auth-video-overlay,
body .auth-video-overlay {
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at right, rgba(29, 78, 216, 0.28) 0%, transparent 52%),
    linear-gradient(160deg, rgba(7, 11, 22, 0.6) 0%, rgba(10, 15, 30, 0.72) 50%, rgba(10, 10, 15, 0.8) 100%) !important;
}

body.auth-worldclass .auth-card,
body .auth-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78)) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

body.auth-worldclass .auth-card h1,
body.auth-worldclass .auth-card p,
body.auth-worldclass .auth-card label,
body.auth-worldclass .auth-card .links a,
body .auth-card h1,
body .auth-card p,
body .auth-card label,
body .auth-card .links a {
  color: #e8e8ed !important;
}

body.auth-worldclass .auth-card p,
body .auth-card p {
  color: #b8c4dd !important;
}

body.auth-worldclass .auth-card input,
body.auth-worldclass .auth-card select,
body .auth-card input,
body .auth-card select {
  background: rgba(15, 23, 42, 0.7) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(96, 165, 250, 0.4) !important;
}

body.auth-worldclass .auth-card button[type="submit"],
body .auth-card button[type="submit"] {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
  color: #fff !important;
}
