:root {
  --bg: #04060f;
  --panel: #080c18;
  --card: #0d1224;
  --border: rgba(0, 240, 255, 0.2);
  --border-hover: rgba(139, 92, 246, 0.6);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #00f0ff;
  --lila: #8b5cf6;
  --green: #00ff88;
  --red: #ff3366;
  --grad: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
  --grad-btn: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.3);
  --glow-lila: 0 0 25px rgba(139, 92, 246, 0.3);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(0, 240, 255, 0.12), transparent 50%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; outline: none; }
ul { list-style: none; }

/* Navbar Profesional */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botones con Gradiente Cyan y Lila */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
  width: 100%;
}

.btn-primary {
  color: #04060f;
  background: var(--grad);
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: var(--glow-lila);
}

.btn-outline {
  border: 1px solid var(--border);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
}

/* Contenedores y Tarjetas */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}

/* Formularios Auth */
.auth {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  width: 100%;
}
.auth-visual {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 240, 255, 0.05));
  border-right: 1px solid var(--border);
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}
.input-field {
  width: 100%;
  padding: 14px 16px;
  background: rgba(4, 6, 15, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 35px 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--cyan);
}

/* Responsividad Móvil */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .navbar { padding: 16px 20px; }
  .auth { display: flex; flex-direction: column; }
  .auth-visual { display: none; }
  .auth-panel { padding: 20px; width: 100%; }
  .footer { flex-direction: column; text-align: center; padding: 24px 16px; }
  .footer-links { justify-content: center; }
}
