/* ============================================================
   RADAR / ATC SCOPE ANIMATION — forgot password background
   ============================================================ */

.radar-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #060a10 0%,
    #0a1018 30%,
    #0c1420 60%,
    #0e1824 100%
  );
}

/* ── No scrollbar on desktop; allow vertical scroll on mobile ── */
body.forgot-page {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-width: 768px) {
  body.forgot-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
}

/* ── Keep form content above the scene ───────────────────── */
.forgot-page .wrapper {
  position: relative;
  z-index: 1;
}

/* ── Subtle grid overlay ─────────────────────────────────── */
.radar-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Radar scope (centered circle) ───────────────────────── */
.radar-scope {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 600px);
  height: min(80vw, 600px);
  border-radius: 50%;
  border: 1px solid rgba(0, 174, 239, 0.1);
  box-shadow:
    0 0 80px rgba(0, 174, 239, 0.04),
    inset 0 0 60px rgba(0, 174, 239, 0.02);
}

/* ── Range rings (concentric circles) ────────────────────── */
.range-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 174, 239, 0.06);
}

.range-ring-1 {
  width: 25%;
  height: 25%;
  transform: translate(-50%, -50%);
}

.range-ring-2 {
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
}

.range-ring-3 {
  width: 75%;
  height: 75%;
  transform: translate(-50%, -50%);
}

/* ── Crosshairs ──────────────────────────────────────────── */
.radar-scope::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 174, 239, 0.05);
}

.radar-scope::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 174, 239, 0.05);
}

/* ── Sweep line (rotating radar arm) ─────────────────────── */
.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  transform-origin: 0 50%;
  animation: radarSweep 6s linear infinite;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 174, 239, 0.4) 0%, transparent 100%);
}

/* Sweep fade trail (conic gradient) */
.radar-sweep::after {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 400px;
  height: 400px;
  transform-origin: 200px 200px;
  background: conic-gradient(
    from -15deg,
    transparent 0deg,
    rgba(0, 174, 239, 0.03) 15deg,
    transparent 40deg
  );
  border-radius: 50%;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Center dot ──────────────────────────────────────────── */
.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: rgba(0, 174, 239, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 174, 239, 0.3);
}

/* ── Compass labels ──────────────────────────────────────── */
.compass-label {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  color: rgba(0, 174, 239, 0.15);
  letter-spacing: 1px;
}

.compass-n { top: 4%;  left: 50%; transform: translateX(-50%); }
.compass-s { bottom: 4%; left: 50%; transform: translateX(-50%); }
.compass-e { right: 4%; top: 50%; transform: translateY(-50%); }
.compass-w { left: 4%;  top: 50%; transform: translateY(-50%); }

/* ── Radar blips (targets) ───────────────────────────────── */
.radar-blip {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 174, 239, 0.7);
  border-radius: 0;
  box-shadow: 0 0 6px rgba(0, 174, 239, 0.4);
}

.blip-1 {
  top: 28%;
  left: 35%;
  animation: blipPulse 6s ease-in-out infinite;
}

.blip-2 {
  top: 40%;
  right: 25%;
  animation: blipPulse 6s ease-in-out infinite 2s;
}

.blip-3 {
  bottom: 30%;
  left: 42%;
  animation: blipPulse 6s ease-in-out infinite 4s;
}

.blip-4 {
  top: 22%;
  right: 38%;
  animation: blipPulse 6s ease-in-out infinite 1s;
}

.blip-5 {
  bottom: 38%;
  right: 32%;
  animation: blipPulse 6s ease-in-out infinite 3s;
}

/* Blip tags (callsign + altitude) */
.blip-1::after,
.blip-2::after,
.blip-4::after {
  content: attr(data-tag);
  position: absolute;
  top: -14px;
  left: 8px;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  color: rgba(0, 174, 239, 0.25);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Speed leader lines */
.blip-1::before,
.blip-2::before,
.blip-4::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 12px;
  height: 1px;
  background: rgba(0, 174, 239, 0.2);
  transform: rotate(-15deg);
  transform-origin: left center;
}

.blip-2::before {
  transform: rotate(-45deg);
}

.blip-4::before {
  transform: rotate(10deg);
}

@keyframes blipPulse {
  0%, 10%  { opacity: 0.8; }
  15%      { opacity: 1; }
  50%      { opacity: 0.15; }
  85%      { opacity: 0.1; }
  90%, 100% { opacity: 0.8; }
}

/* ── Moving target (slow drift) ──────────────────────────── */
.blip-moving {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(34, 197, 94, 0.6);
  border-radius: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
  top: 55%;
  left: 20%;
  animation:
    blipDrift 30s linear infinite,
    blipPulseGreen 6s ease-in-out infinite;
}

.blip-moving::after {
  content: attr(data-tag);
  position: absolute;
  top: -14px;
  left: 8px;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  color: rgba(34, 197, 94, 0.25);
  white-space: nowrap;
}

.blip-moving::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 16px;
  height: 1px;
  background: rgba(34, 197, 94, 0.2);
  transform: rotate(-20deg);
  transform-origin: left center;
}

@keyframes blipDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(80px, -40px); }
  50%  { transform: translate(160px, -20px); }
  75%  { transform: translate(100px, 30px); }
  100% { transform: translate(0, 0); }
}

@keyframes blipPulseGreen {
  0%, 10%  { opacity: 0.6; }
  15%      { opacity: 0.9; }
  50%      { opacity: 0.15; }
  90%, 100% { opacity: 0.6; }
}

/* ── Readability overlay ─────────────────────────────────── */
.radar-scene .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 10, 16, 0.1) 0%,
    rgba(6, 10, 16, 0.55) 100%
  );
  pointer-events: none;
}

/* ============================================================
   FORGOT FORM — Premium glassmorphic card (matches login)
   ============================================================ */

.forgot-page .forgot-password {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

/* Override pages.css form card for elevated look */
.forgot-page form {
  background: rgba(18, 22, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: 2.5rem 2.25rem 2rem;
  border-radius: 24px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease-out;
}

/* Heading */
.forgot-page .auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Subtitle text */
.forgot-page .forgot-password-text {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Input wrapper with icon */
.forgot-page .forgot-field {
  position: relative;
  margin-bottom: 1rem;
}

.forgot-page .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}

.forgot-page .forgot-field:focus-within .input-icon {
  color: var(--dsc-accent);
}

.forgot-page .forgot-field input {
  display: block;
  width: 100%;
  padding: 14px 14px 14px 42px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.2s;
  margin-bottom: 0;
}

.forgot-page .forgot-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.forgot-page .forgot-field input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--dsc-accent);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12), 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

/* Submit button — gradient */
.forgot-page .forgot-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--dsc-primary) 0%, #0088cc 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 174, 239, 0.2);
  margin-top: 0.5rem;
}

.forgot-page .forgot-btn:hover {
  background: linear-gradient(135deg, var(--dsc-primary-hover) 0%, #00aeef 100%);
  box-shadow: 0 6px 24px rgba(0, 174, 239, 0.3);
  transform: translateY(-2px);
}

.forgot-page .forgot-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

/* Auth footer */
.forgot-page .auth-footer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.forgot-page .auth-footer a {
  color: var(--dsc-accent);
  font-weight: 600;
}

/* Recaptcha */
.forgot-page .recaptcha-container {
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.forgot-page .recaptcha-container .g-recaptcha {
  transform: none !important;
}

/* Hide original form-label, use placeholder instead */
.forgot-page .forgot-field .form-label {
  display: none;
}

/* ── Flash messages above form ──────────────────────────── */
.forgot-page .flash-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
