/* assets/auth-xmas-solar.css */
/* X-MASS dark + solar-system vertigo background */

body.theme-xmas-dark {
  background:
    radial-gradient(1600px 900px at 0% -10%, #22c55e22, transparent 60%),
    radial-gradient(1400px 900px at 120% -10%, #0ea5e922, transparent 65%),
    radial-gradient(1300px 900px at 50% 120%, #4f46e522, transparent 70%),
    linear-gradient(180deg, #020617, #020617 40%, #020617 100%);
  color: #e5f1ff;
  overflow: hidden;
}

/* subtle star grid */
body.theme-xmas-dark::before {
  content: "";
  position: fixed;
  inset: -40px;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(148,163,184,0.8) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .22;
}

/* solar system wrapper */
.auth-solar-bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.auth-solar-core {
  position: relative;
  width: 620px;
  height: 620px;
  opacity: .9;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
  filter:
    drop-shadow(0 0 35px rgba(59,130,246,0.65))
    drop-shadow(0 0 70px rgba(34,197,94,0.45));
}

/* sun */
.solar-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #fefce8 0%, #facc15 40%, #fb923c 65%, #b91c1c 100%);
  box-shadow:
    0 0 90px rgba(250, 204, 21, 0.95),
    0 0 180px rgba(253, 249, 225, 0.8);
}

/* orbit base */
.solar-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(148,163,184,0.35);
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  box-shadow:
    0 0 18px rgba(15,23,42,0.9),
    inset 0 0 14px rgba(15,23,42,0.95);
}
.solar-orbit::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(15,23,42,0.9);
  opacity: .55;
}

/* planet marker */
.solar-orbit .planet {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* specific orbits */
.solar-orbit.mercury {
  width: 130px;
  height: 130px;
  animation: orbit-mercury 16s linear infinite;
}
.solar-orbit.mercury .planet {
  width: 9px;
  height: 9px;
  background: radial-gradient(circle, #f9fafb, #9ca3af);
  box-shadow: 0 0 16px rgba(148,163,184,0.9);
}

.solar-orbit.venus {
  width: 210px;
  height: 210px;
  animation: orbit-venus 24s linear infinite;
}
.solar-orbit.venus .planet {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, #fed7aa, #fb923c);
  box-shadow: 0 0 20px rgba(252,211,77,0.9);
}

.solar-orbit.earth {
  width: 310px;
  height: 310px;
  animation: orbit-earth 32s linear infinite;
}
.solar-orbit.earth .planet {
  width: 14px;
  height: 14px;
  background:
    radial-gradient(circle at 30% 20%, #e0f2fe, #22c55e 40%, #0f172a 95%);
  box-shadow: 0 0 26px rgba(56,189,248,0.95);
}

.solar-orbit.mars {
  width: 390px;
  height: 390px;
  animation: orbit-mars 42s linear infinite;
}
.solar-orbit.mars .planet {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #fecaca, #b91c1c);
  box-shadow: 0 0 22px rgba(248,113,113,0.9);
}

.solar-orbit.jupiter {
  width: 500px;
  height: 500px;
  animation: orbit-jupiter 70s linear infinite;
}
.solar-orbit.jupiter .planet {
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle, #fee2b3, #f59e0b 45%, #92400e 100%);
  box-shadow:
    0 0 30px rgba(251,191,36,0.98),
    0 0 60px rgba(245,158,11,0.8);
}

/* asteroid belt */
.solar-orbit.belt {
  width: 580px;
  height: 580px;
  border-style: dotted;
  border-color: rgba(148,163,184,0.2);
  animation: orbit-belt 90s linear infinite;
  opacity: .55;
}

/* orbit animations */
@keyframes orbit-mercury {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-venus {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes orbit-earth {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-mars {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes orbit-jupiter {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-belt {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* card + UI colors */
body.theme-xmas-dark .auth-shell-root {
  padding-top: 60px;
}

body.theme-xmas-dark .auth-brand-pill {
  background: radial-gradient(circle at 10% 0%, #22c55e66, #1d4ed8aa);
  border: 1px solid rgba(148,163,184,0.65);
  color: #e5f1ff;
  box-shadow:
    0 20px 50px rgba(15,23,42,0.95),
    0 0 0 1px rgba(15,23,42,1);
}
body.theme-xmas-dark .auth-brand-pill i {
  color: #bef264;
}

body.theme-xmas-dark .auth-header-title {
  color: #e5f1ff;
}
body.theme-xmas-dark .auth-header-sub {
  color: #9ca3af;
}

body.theme-xmas-dark .auth-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,0.38), transparent 65%),
    radial-gradient(circle at 80% 120%, rgba(34,197,94,0.38), transparent 70%),
    rgba(15,23,42,0.94);
  border: 1px solid rgba(37,99,235,0.8);
  box-shadow:
    0 40px 110px rgba(15,23,42,0.98),
    0 0 0 1px rgba(15,23,42,1),
    0 0 90px rgba(56,189,248,0.55);
}

/* tabs */
body.theme-xmas-dark .auth-toggle-btn {
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
  border-color: rgba(75,85,99,0.7);
  color: #e5f1ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
body.theme-xmas-dark .auth-toggle-btn.active {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: transparent;
  color: #f9fafb;
  box-shadow:
    0 18px 46px rgba(16,185,129,0.8),
    0 0 0 1px rgba(15,23,42,0.95);
}
body.theme-xmas-dark .auth-toggle-btn.disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* caption */
body.theme-xmas-dark .auth-mode-caption {
  color: #cbd5f5;
}

/* inputs */
body.theme-xmas-dark .form-control {
  background: rgba(15,23,42,0.98);
  border-color: rgba(37,99,235,0.7);
  color: #e5f1ff;
}
body.theme-xmas-dark .form-control::placeholder {
  color: #64748b;
}
body.theme-xmas-dark .form-control:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.65);
}

body.theme-xmas-dark .input-group-text {
  background: rgba(15,23,42,0.99);
  border-color: rgba(37,99,235,0.7);
  color: #94a3af;
}

/* buttons */
body.theme-xmas-dark .auth-primary-btn {
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #f9fafb;
  font-weight: 600;
  box-shadow:
    0 22px 56px rgba(16,185,129,0.85),
    0 0 0 1px rgba(15,23,42,1);
}
body.theme-xmas-dark .auth-primary-btn:hover {
  filter: brightness(1.05);
}

body.theme-xmas-dark .btn-outline-secondary {
  border-radius: 0 14px 14px 0;
  border-color: rgba(75,85,99,0.8);
  background: rgba(15,23,42,0.99);
  color: #d1d5db;
}
body.theme-xmas-dark .btn-outline-secondary:hover {
  background: rgba(15,23,42,1);
}

/* caps lock */
body.theme-xmas-dark #capsHint {
  color: #fde68a;
}

/* messages */
body.theme-xmas-dark .auth-msg-error {
  color: #fecaca;
}
body.theme-xmas-dark .auth-msg-success {
  color: #bbf7d0;
}

/* footer */
body.theme-xmas-dark .auth-footer-left {
  color: #9ca3af;
}
body.theme-xmas-dark .auth-footer-right {
  color: #bfdbfe;
}
body.theme-xmas-dark .auth-footer-right:hover {
  color: #e5f1ff;
}
body.theme-xmas-dark .auth-footer {
  color: #64748b;
}

/* registration alert */
body.theme-xmas-dark .auth-reg-closed {
  background: rgba(251,191,36,0.12);
  border-color: rgba(250,204,21,0.8);
  color: #fde68a;
}
/* === OVERRIDES: make solar system big and clearly behind the card === */

/* Put the solar system exactly behind the card area */
.auth-solar-bg {
  align-items: center;
  justify-content: center;
}

/* Bigger core + shift a bit up so arcs hug the card */
.auth-solar-core {
  width: 900px;
  height: 900px;
  margin-top: -120px;       /* move disk up behind title + card */
  opacity: 1;
}

/* Make orbits brighter and more visible */
.solar-orbit {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow:
    0 0 28px rgba(15, 23, 42, 0.9),
    inset 0 0 18px rgba(15, 23, 42, 0.95);
}

/* Slightly larger planets so they are noticeable */
.solar-orbit.mercury .planet { width: 11px; height: 11px; }
.solar-orbit.venus   .planet { width: 14px; height: 14px; }
.solar-orbit.earth   .planet { width: 18px; height: 18px; }
.solar-orbit.mars    .planet { width: 16px; height: 16px; }
.solar-orbit.jupiter .planet { width: 26px; height: 26px; }

/* Stronger glow behind the card */
body.theme-xmas-dark .auth-card {
  box-shadow:
    0 0 140px rgba(56, 189, 248, 0.75),
    0 40px 110px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(15, 23, 42, 1);
}
