/* ====== RECUPERAR ACCESO ====== */
.recuperar-page {
  --overlay-alpha: 0.22;
  --grid: rgba(255,255,255,0.06);

  --candle-up: rgba(0, 220, 130, var(--overlay-alpha));
  --candle-up-wick: rgba(0, 220, 130, 0.60);
  --candle-down: rgba(255, 80, 80, var(--overlay-alpha));
  --candle-down-wick: rgba(255, 80, 80, 0.60);

  --ma-line: rgba(0, 200, 255, 0.85);
  --ma-glow: rgba(0, 200, 255, 0.35);
  --vol-bar: rgba(0, 200, 255, 0.18);
}

html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
.recuperar-page .container { padding: 0 12px; }
.recuperar-page .shell { width: min(560px, 96vw); margin: 48px auto; }

/* ====== Overlay de mercado ====== */
.recuperar-page .market-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.recuperar-page .market-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to top,   var(--grid) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  opacity: .35; animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: -120px 0, 0 -120px; } }
.recuperar-page .candles-wrap { position: absolute; inset: 8% 0 8% 0; opacity: .9; }
.recuperar-page #candles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.recuperar-page .market-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(0,0,0,.35) 85%);
}

/* Contenido por encima del overlay */
.recuperar-page main,
.recuperar-page .card { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .recuperar-page .market-overlay { display: none; }
}

/* ====== Card principal ====== */
.recuperar-page .card {
  position: relative;
  border-radius: 20px;
  background: rgba(8, 12, 22, 0.50);
  border: 1px solid rgba(0, 200, 255, 0.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
}
.recuperar-page .card::before {
  content: ""; position: absolute; inset: 0;
  padding: 1px; border-radius: 20px;
  background: linear-gradient(135deg,
    rgba(0,200,255,.65),
    rgba(0,220,130,.65),
    rgba(0,200,255,.65));
  /* borde hueco compatible (sin warning del linter) */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask:        linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 14px rgba(0,200,255,.28));
  pointer-events: none; opacity: .7; transition: opacity .25s ease;
}
.recuperar-page .card:hover::before { opacity: .95; }

/* ====== Brand (título + subtítulo centrados) ====== */
.recuperar-page .brand {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.recuperar-page .brand .title {
  display: block; margin: 12px 0 6px 0; line-height: 1.1; letter-spacing: .2px;
  font-size: clamp(28px, 6vw, 44px);
  background: linear-gradient(90deg, #fff 0%, rgba(0,200,255,1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(0,200,255,.28);
}
.recuperar-page .brand .subtitle {
  display: block; margin: 0; color: rgba(255,255,255,.85);
  font-size: clamp(14px, 2.4vw, 16px); opacity: .95;
}

/* ====== Formulario ====== */
.recuperar-page .form { padding: 0 12px 16px 12px; }
.recuperar-page .label { display:block; margin: 10px 0 6px; }
.recuperar-page .input {
  height: 44px; width: 100%;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff; padding: 0 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.recuperar-page .input:focus {
  border-color: rgba(0,200,255,.60);
  box-shadow:
    0 0 0 4px rgba(0,200,255,.10),
    inset 0 0 0 1px rgba(0,200,255,.35);
  background: rgba(255,255,255,.06);
  outline: none;
}

/* Acciones y separador */
.recuperar-page .actions { display:flex; align-items:center; gap: 12px; }
.recuperar-page .card hr {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  margin: 18px 0;
}

/* Botones */
.recuperar-page .btn.primary {
  height: 46px; border-radius: 14px; border: 0; padding: 0 18px;
  background: linear-gradient(180deg, rgba(0,200,255,.95), rgba(0,160,255,.9));
  box-shadow:
    0 10px 30px rgba(0,200,255,.18),
    inset 0 0 14px rgba(255,255,255,.18);
  color: #00131a; font-weight: 600;
  transition: transform .06s ease, filter .15s ease;
}
.recuperar-page .btn.primary:hover { filter: brightness(1.05); }
.recuperar-page .btn.primary:active { transform: translateY(1px); }

.recuperar-page .btn.ghost { opacity: .9; text-decoration: none; }

/* Mensaje dinámico */
.recuperar-page #forgotMsg { min-height: 1.2em; }
