html,
body {
  height: 100%;
  background: #0a0a0a;
}
body,
input,
select,
button,
label,
span {
  color: #fff;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
select option {
  color: #0a0a0a;
}
.hidden {
  display: none;
}
/* Background canvas container */
#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 70% 30%, rgba(168, 85, 247, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 25% 70%, rgba(34, 211, 238, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%, rgba(255, 255, 255, 0.01));
}

/* Soft vignette + scanlines */
.vignette::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(closest-side, transparent 55%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(1200px 900px at 50% 30%, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    rgba(0, 0, 0, 0) 3px,
    rgba(0, 0, 0, 0) 6px
  );
  opacity: 0.1;
  pointer-events: none;
}

/* Neon border glow */
.neon-frame {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 80px rgba(0, 0, 0, 0.6);
}
.neon-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(168, 85, 247, 0.55));
  opacity: 0.35;
  filter: blur(14px);
  z-index: -1;
}

/* Hover tilt with CSS variables */
.tilt {
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition:
    transform 120ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

/* Button neon */
.btn-neon {
  position: relative;
  overflow: hidden;
}
.btn-neon::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.85),
    rgba(168, 85, 247, 0.85),
    rgba(34, 211, 238, 0.85)
  );
  filter: blur(10px);
  opacity: 0.65;
  transition: opacity 180ms ease;
}
.btn-neon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px 200px at var(--mx, 50%) 50%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  opacity: 0.35;
  pointer-events: none;
}
.btn-neon:hover::before {
  opacity: 0.95;
}

/* Subtle animated gradient text */
.grad-text {
  background: linear-gradient(90deg, #22d3ee, #a855f7, #22d3ee);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Input glow on focus */
.glow:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 0 0 4px rgba(168, 85, 247, 0.18),
    0 0 30px rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
}

/* Tiny floating particles overlay (CSS) */
.dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(34, 211, 238, 0.2) 50%, transparent 55%),
    radial-gradient(2px 2px at 30% 80%, rgba(168, 85, 247, 0.2) 50%, transparent 55%),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.1) 50%, transparent 55%),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.2px);
  animation: floatDust 10s ease-in-out infinite;
}
@keyframes floatDust {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  min-width: 220px;
  max-width: 90vw;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2px;
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.toast.error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}
.toast.show {
  display: block;
  animation:
    toastIn 0.25s ease,
    toastOut 0.25s ease 2.6s forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

.reset-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.reset-modal-overlay.active {
  display: flex;
}
.reset-modal {
  width: min(92vw, 360px);
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.reset-modal.show {
  animation: toastIn 0.2s ease;
}
.reset-modal input {
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  font-size: 12px;
  color: #fff;
}
.reset-modal input.temp-password-input {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}
.reset-modal input.temp-password-input:focus {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
  outline: none;
}
.reset-modal input.temp-password-input::placeholder {
  color: rgba(34, 211, 238, 0.85);
  font-weight: 500;
}
.reset-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.reset-modal-actions button {
  flex: 1;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.reset-modal-actions button.primary {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), rgba(168, 85, 247, 0.4));
  border-color: rgba(255, 255, 255, 0.18);
}
.reset-modal-message {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.reset-modal-message.error {
  color: #fecaca;
}
