@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; overflow: hidden; }

/* ══ ROOT ══ */
.cs-root {
  min-height: 100vh; width: 100%; display: flex;
  font-family: 'Rajdhani', sans-serif;
  background: #0A0F1C; overflow: hidden; position: relative;
}

/* ══ FONDO GLOBAL ══ */
.bg-grid {
  position: fixed; inset: 0; overflow: hidden; perspective: 500px;
  pointer-events: none; z-index: 0;
}
.bg-grid-inner {
  position: absolute; inset: -50%; width: 200%; height: 200%;
  background-image:
    linear-gradient(rgba(160,255,0,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,255,0,0.10) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: rotateX(52deg) translateY(-10%);
  animation: gridScroll 7s linear infinite;
}
@keyframes gridScroll {
  from { transform: rotateX(52deg) translateY(-10%); }
  to   { transform: rotateX(52deg) translateY(calc(-10% + 52px)); }
}
.bg-scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(to bottom,
    transparent 0, transparent 3px, rgba(0,0,0,0.1) 3px, rgba(0,0,0,0.1) 4px);
}
.bg-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 90% 90% at 50% 50%,
    transparent 30%, rgba(10,15,28,0.80) 100%);
}
.particle {
  position: fixed; border-radius: 50%; background: #aaff00;
  pointer-events: none; z-index: 3;
  animation: pDrift var(--dur) ease-in-out var(--delay) infinite alternate;
}
@keyframes pDrift {
  from { transform: translate(0,0) scale(1); opacity: var(--op); }
  to   { transform: translate(var(--dx),var(--dy)) scale(1.5); opacity: calc(var(--op)*0.15); }
}

/* Corners globales */
.corner { position: fixed; width: 44px; height: 44px; z-index: 6; pointer-events: none; }
.corner::before, .corner::after { content: ''; position: absolute; background: #aaff00; opacity: 0.6; }
.corner.tl { top: 20px; left: 20px; }
.corner.tl::before { top:0; left:0; width:2px; height:22px; }
.corner.tl::after  { top:0; left:0; width:22px; height:2px; }
.corner.tr { top: 20px; right: 20px; }
.corner.tr::before { top:0; right:0; width:2px; height:22px; }
.corner.tr::after  { top:0; right:0; width:22px; height:2px; }
.corner.bl { bottom: 20px; left: 20px; }
.corner.bl::before { bottom:0; left:0; width:2px; height:22px; }
.corner.bl::after  { bottom:0; left:0; width:22px; height:2px; }
.corner.br { bottom: 20px; right: 20px; }
.corner.br::before { bottom:0; right:0; width:2px; height:22px; }
.corner.br::after  { bottom:0; right:0; width:22px; height:2px; }

/* ══ PANEL IZQUIERDO ══ */
.cs-left {
  flex: 0 0 300px; position: relative; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 16px 0 40px;
}

.cs-brand-wrap { margin-bottom: 28px; }
.cs-brand {
  font-family: 'Orbitron', sans-serif; font-size: 3rem; font-weight: 900;
  color: #aaff00; letter-spacing: 0.15em;
  text-shadow: 0 0 30px rgba(170,255,0,0.55); line-height: 1;
}
.cs-brand-line {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
}
.cs-brand-line::before, .cs-brand-line::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(170,255,0,0.4), transparent);
}
.cs-brand-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.38em;
  color: rgba(170,255,0,0.45); text-transform: uppercase;
}

/* badge con marco HUD */
.cs-badge-wrap {
  position: relative; width: 140px; height: 140px;
  margin-bottom: 32px;
}
.cs-badge-frame {
  position: absolute; inset: 0;
  border: 1px solid rgba(170,255,0,0.2);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(170,255,0,0.08), inset 0 0 20px rgba(170,255,0,0.04);
}
.cs-badge-frame::before, .cs-badge-frame::after {
  content: ''; position: absolute; background: #aaff00; opacity: 0.5;
}
.cs-badge-frame::before { top:-1px; left:20%; right:20%; height:1px;
  background: linear-gradient(90deg, transparent, #aaff00, transparent); }
.cs-badge-frame::after  { bottom:-1px; left:20%; right:20%; height:1px;
  background: linear-gradient(90deg, transparent, #aaff00, transparent); }

.cs-badge {
  position: absolute; inset: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c8ff00 0%, #7ab800 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 40px rgba(170,255,0,0.5), 0 0 80px rgba(170,255,0,0.2);
  animation: badgePulse 3s ease-in-out infinite;
  padding: 10px;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 40px rgba(170,255,0,0.5), 0 0 80px rgba(170,255,0,0.2); }
  50%      { box-shadow: 0 0 60px rgba(170,255,0,0.7), 0 0 120px rgba(170,255,0,0.35); }
}

/* stats */
.cs-stats { display: flex; gap: 24px; margin-bottom: 24px; align-items: flex-end; }
.cs-stat-sep { width: 1px; height: 32px; background: rgba(170,255,0,0.2); align-self: center; }
.cs-stat { text-align: left; }
.cs-stat-num {
  font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 900;
  color: #aaff00; text-shadow: 0 0 12px rgba(170,255,0,0.45); line-height: 1;
}
.cs-stat-lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.56rem; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.3); text-transform: uppercase; margin-top: 3px;
}

.cs-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem; color: rgba(255,255,255,0.3);
  line-height: 1.75; letter-spacing: 0.02em;
}

/* ══ SEPARADOR CENTRAL (línea vertical con punto) ══ */
.cs-sep-wrap {
  position: fixed; left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 1px; z-index: 5; pointer-events: none;
  display: none;
}
.cs-sep-line {
  flex: 1; width: 1px;
  background: linear-gradient(to bottom,
    transparent, rgba(170,255,0,0.15) 20%,
    rgba(170,255,0,0.35) 50%, rgba(170,255,0,0.15) 80%, transparent);
}
.cs-sep-dot-top, .cs-sep-dot-bottom {
  width: 8px; height: 8px; border-radius: 50%;
  background: #aaff00; box-shadow: 0 0 10px #aaff00, 0 0 20px rgba(170,255,0,0.5);
  flex-shrink: 0;
}

/* ══ PANEL CENTRAL: CARD ══ */
.cs-center {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  pointer-events: none;
}
.cs-center > * { pointer-events: all; }

.cs-card {
  width: 100%; max-width: 420px;
  background: rgba(10,15,28,0.90);
  border: 1px solid rgba(170,255,0,0.15);
  border-radius: 20px;
  padding: 36px 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(170,255,0,0.06),
    0 0 60px rgba(170,255,0,0.07),
    0 24px 80px rgba(0,0,0,0.7);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.cs-card.in { opacity: 1; transform: translateY(0); }

/* top dot en la card */
.cs-card::before {
  content: ''; position: absolute;
  top: -4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #aaff00; box-shadow: 0 0 10px #aaff00;
}
.cs-card::after {
  content: ''; position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #aaff00; box-shadow: 0 0 10px #aaff00;
}

/* shield icon */
.cs-shield {
  display: flex; justify-content: center; margin-bottom: 16px;
}
.cs-shield svg {
  width: 36px; height: 36px;
  filter: drop-shadow(0 0 8px rgba(170,255,0,0.6));
}

/* eyebrow con líneas */
.cs-form-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.3em;
  color: rgba(170,255,0,0.7); text-transform: uppercase;
  margin-bottom: 12px;
}
.cs-form-eyebrow::before, .cs-form-eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(170,255,0,0.3);
}

.cs-form-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: #fff; line-height: 1.1; text-align: center;
  margin-bottom: 6px;
}
.cs-form-title span { color: #aaff00; }

.cs-form-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem; color: rgba(255,255,255,0.35);
  text-align: center; margin-bottom: 28px; letter-spacing: 0.02em;
}

/* fields */
.cs-field { margin-bottom: 16px; }
.cs-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 8px; display: block;
}
.cs-input-wrap {
  position: relative; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center;
}
.cs-input-wrap.focused {
  border-color: #aaff00;
  box-shadow: 0 0 0 3px rgba(170,255,0,0.08), inset 0 0 16px rgba(170,255,0,0.04);
}
.cs-input-wrap.filled { border-color: rgba(170,255,0,0.25); }

.cs-input-icon-left {
  padding: 0 12px 0 14px; color: rgba(170,255,0,0.35);
  transition: color 0.25s; flex-shrink: 0;
}
.cs-input-wrap.focused .cs-input-icon-left { color: #aaff00; }
.cs-input-icon-left svg { width: 16px; height: 16px; display: block; }

.cs-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 500; padding: 13px 0;
  letter-spacing: 0.04em; caret-color: #aaff00;
  cursor: text;
}
.cs-input::placeholder { color: rgba(255,255,255,0.18); font-weight: 300; }

.cs-input-icon {
  padding: 0 14px; color: rgba(255,255,255,0.22); cursor: pointer;
  font-family: 'Share Tech Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.1em; user-select: none; flex-shrink: 0;
  transition: color 0.2s;
}
.cs-input-wrap.focused .cs-input-icon { color: rgba(170,255,0,0.55); }
.cs-input-icon:hover { color: #aaff00 !important; }

.cs-input-line {
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0; background: #aaff00;
  transition: width 0.35s ease;
}
.cs-input-wrap.focused .cs-input-line { width: 100%; }

/* status */
.cs-status {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; border-radius: 7px; margin-bottom: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.02em; line-height: 1.4;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(5px); }
  to   { opacity:1; transform:translateY(0); }
}
.cs-status.error   { background:rgba(255,59,48,0.1);   color:#ff6b6b; border:1px solid rgba(255,59,48,0.2); }
.cs-status.success { background:rgba(111,255,111,0.08); color:#6fff6f; border:1px solid rgba(111,255,111,0.2); }
.cs-status.warn    { background:rgba(170,255,0,0.07);   color:#aaff00; border:1px solid rgba(170,255,0,0.2); }
.cs-status-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.error   .cs-status-dot { background:#ff6b6b; }
.success .cs-status-dot { background:#6fff6f; box-shadow:0 0 6px #6fff6f; }
.warn    .cs-status-dot { background:#aaff00; }

/* button */
.cs-btn {
  width: 100%; padding: 15px; background: #aaff00; border: none; border-radius: 8px;
  font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.25em; color: #060a06; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
  box-shadow: 0 4px 28px rgba(170,255,0,0.35);
}
.cs-btn::before {
  content: ''; position: absolute; top:0; left:-100%; width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.5s ease;
}
.cs-btn:hover::before { left: 100%; }
.cs-btn:hover:not(:disabled) {
  background: #c0ff33; box-shadow: 0 4px 44px rgba(170,255,0,0.55); transform: translateY(-2px);
}
.cs-btn:active:not(:disabled) { transform: translateY(0); }
.cs-btn.loading {
  background: transparent; color: #aaff00;
  border: 1px solid rgba(170,255,0,0.3);
  box-shadow: 0 0 18px rgba(170,255,0,0.1); cursor: not-allowed;
}
.cs-btn:disabled { cursor: not-allowed; }
.cs-btn-dots { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; letter-spacing: 0.3em; color: #aaff00; }

/* footer */
.cs-footer {
  margin-top: 18px; display: flex; align-items: center; gap: 8px;
}
.cs-footer-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #aaff00;
  flex-shrink: 0; box-shadow: 0 0 7px #aaff00;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;} 50%{opacity:0.25;} }
.cs-footer-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.63rem; color: rgba(255,255,255,0.22);
  font-style: italic; letter-spacing: 0.02em;
}

/* ══ PANEL DERECHO (fantasma) ══ */
.cs-right {
  flex: 0 0 200px; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 4;
}
.cs-right-ghost {
  border: 1px solid rgba(170,255,0,0.08);
  border-radius: 12px; padding: 20px 16px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0.35;
}
.cs-right-ghost-icon { font-size: 1.4rem; opacity: 0.5; }
.cs-right-ghost-lines { display: flex; flex-direction: column; gap: 5px; }
.cs-right-ghost-line {
  height: 6px; border-radius: 3px; background: rgba(170,255,0,0.2);
}

/* Vue transitions */
.fade-up-enter-active, .fade-up-leave-active { transition: opacity 0.3s, transform 0.3s; }
.fade-up-enter-from, .fade-up-leave-to { opacity:0; transform:translateY(6px); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .cs-right { display: none; }
}
@media (max-width: 720px) {
  .cs-root { flex-direction: column; overflow-y: auto; }
  .cs-left { flex: none; width: 100%; padding: 36px 28px 24px; align-items: center; text-align: center; }
  .cs-brand-line::after { background: linear-gradient(270deg, rgba(170,255,0,0.4), transparent); }
  .cs-stats { justify-content: center; }
  .cs-tagline { text-align: center; }
  .cs-center { padding: 24px 20px 40px; }
  .cs-sep-wrap { display: none; }
}

/* ── Logo imagen en badge ── */
.cs-badge-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 0px #888)
    drop-shadow(0 0 1px #999)
    drop-shadow(0 0 2px #aaa)
    drop-shadow(0 0 3px rgba(160,160,160,0.8));
}

/* ── Links: olvidé contraseña / crear cuenta ── */
.cs-links {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cs-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.82rem; letter-spacing: 0.06em;
  color: rgba(170,255,0,0.5);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.cs-link:hover {
  color: #aaff00;
  text-shadow: 0 0 8px rgba(170,255,0,0.6);
}
.cs-link-sep {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem; color: rgba(170,255,0,0.2);
}
