/* ====== REGISTRO ====== */
.registro-page {
  /* variables visuales (coinciden con inicio) */
  --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);
}

/* Layout base */
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
.registro-page .container { padding: 0 12px; }
.registro-page .shell { width: min(1040px, 96vw); margin: 48px auto; }

/* ====== Overlay de mercado (rejilla + velas) ====== */
.registro-page .market-overlay {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.registro-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; } }
.registro-page .candles-wrap { position: absolute; inset: 8% 0 8% 0; opacity: .9; }
.registro-page #candles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.registro-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%);
}

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

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

/* ====== Card principal (glass + neón) ====== */
.registro-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;
}
.registro-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 */
  -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;
}
.registro-page .card:hover::before { opacity: .95; }

/* ====== Grid de la página ====== */
.registro-page .grid-auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 880px){
  .registro-page .grid-auth { grid-template-columns: 1fr; }
}

/* ====== Hero (lado izq) ====== */
.registro-page .hero { padding: 8px 8px 0 8px; }
.registro-page .hero h2 {
  margin: 0 0 6px 0;
  font-size: clamp(22px, 3.2vw, 28px);
  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 18px rgba(0,200,255,.22);
}
.registro-page .hero p { margin: 0; }
.registro-page .kpis { display: grid; gap: 10px; margin-top: 18px; }
.registro-page .kpi { display:flex; gap:10px; align-items:flex-start; }
.registro-page .kpi .dot {
  width:10px; height:10px; border-radius:50%; margin-top:6px;
  background:#75c7ff; box-shadow: 0 0 12px rgba(117,199,255,.5);
}
.registro-page .legal { font-size:.92rem; }
.registro-page .muted strong { color: #e7eefc; }

/* ====== Formulario (lado dcho) ====== */
.registro-page .header { margin-bottom: 6px; }
.registro-page .header h1 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: .2px;
}

.registro-page .fieldpair {
  display:grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 720px){ .registro-page .fieldpair { grid-template-columns: 1fr; } }

.registro-page .label { display:block; margin: 10px 0 6px; }
.registro-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;
}
.registro-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;
}

/* Password + toggles */
.registro-page .password-field { position: relative; }
.registro-page .password-field .toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  height: 30px; padding: 0 10px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.85);
  font-size: 12px; letter-spacing: .2px;
}
.registro-page .password-field .toggle:hover {
  background: rgba(255,255,255,.06); color: #fff;
}

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

/* Botones */
.registro-page .btn.ok {
  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;
}
.registro-page .btn.ok:hover { filter: brightness(1.05); }
.registro-page .btn.ok:active { transform: translateY(1px); }

.registro-page #registerMsg { min-height: 1.2em; }
