@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Montserrat:wght@300;700&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg:       #08080F;
  --clr-violet:   #4F2BFF;
  --clr-magenta:  #C023E8;
  --clr-orange:   #FF6B00;
  --clr-red:      #FF1A1A;
  --clr-cyan:     #00D4FF;
  --clr-white:    #FFFFFF;
  --clr-muted:    rgba(255,255,255,0.55);
  --clr-panel:    rgba(10, 14, 40, 0.82);
  --clr-border:   rgba(255, 107, 0, 0.28);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Montserrat', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--clr-bg);
  font-family: var(--font-body);
  color: var(--clr-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Canvas de rayas ───────────────────────────────────────── */
#speed-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Resplandor de fondo ───────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 40% at 50% 50%,
      rgba(255, 107, 0, 0.12) 0%,
      transparent 70%),
    radial-gradient(ellipse 40% 30% at 35% 50%,
      rgba(79, 43, 255, 0.10) 0%,
      transparent 70%);
}

/* ─── Layout principal ──────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: 100%;
  max-width: 960px;
  padding: 24px 20px;
  min-height: 100vh;
}

/* ─── Columna izquierda: logo + metamask ────────────────────── */
.side-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: fade-in 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.side-logo img.logo-img {
  width: min(260px, 38vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(79, 43, 255, 0.50))
          drop-shadow(0 0 14px rgba(255, 107, 0, 0.28));
}

/* Bloque de descarga MetaMask */
.metamask-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.metamask-block p {
  font-size: 0.78rem;
  color: var(--clr-muted);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.btn-metamask {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: linear-gradient(110deg, #E8821A 0%, #F6851B 100%);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  box-shadow: 0 0 18px rgba(246,133,27,0.40), 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn-metamask:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(246,133,27,0.60), 0 6px 20px rgba(0,0,0,0.45);
}

.btn-metamask img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ─── Separador vertical ────────────────────────────────────── */
.divider-v {
  flex: 0 0 1px;
  align-self: stretch;
  background: linear-gradient(180deg,
    transparent,
    rgba(255,107,0,0.5) 20%,
    rgba(0,212,255,0.4) 50%,
    rgba(79,43,255,0.5) 80%,
    transparent);
  min-height: 380px;
  animation: fade-in 0.8s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}

/* ─── Columna derecha: panel ────────────────────────────────── */
.auth-panel {
  flex: 1 1 auto;
  max-width: 380px;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 36px 32px 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 40px rgba(255, 107, 0, 0.14),
    0 8px 32px rgba(0,0,0,0.55);
  animation: panel-in 0.8s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}

/* ─── Título del panel ──────────────────────────────────────── */
.panel-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
  background: linear-gradient(110deg, var(--clr-orange), var(--clr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Campo de entrada ──────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}

.field-group input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,107,0,0.30);
  border-radius: 6px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--clr-white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field-group input::placeholder {
  color: var(--clr-muted);
  font-size: 0.85rem;
}

.field-group input:focus {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.14);
}

/* ─── Botones ───────────────────────────────────────────────── */
.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 13px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  display: block;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.18s;
  background: rgba(255,255,255,0.10);
}
.btn:hover::after  { opacity: 1; }
.btn:hover         { transform: translateY(-2px); }
.btn:active        { transform: translateY(0); }

/* Conectar Wallet — degradado naranja-rojo */
.btn-wallet {
  background: linear-gradient(110deg, var(--clr-orange) 0%, var(--clr-red) 100%);
  color: var(--clr-white);
  box-shadow: 0 0 18px rgba(255,107,0,0.40), 0 4px 14px rgba(255,26,26,0.28);
}
.btn-wallet:hover {
  box-shadow: 0 0 28px rgba(255,107,0,0.60), 0 6px 20px rgba(255,26,26,0.42);
}

/* ─── Separador social ──────────────────────────────────────── */
.social-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 14px;
}
.social-sep span {
  font-size: 0.72rem;
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.social-sep::before,
.social-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ─── Redes sociales ────────────────────────────────────────── */
.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.18s, opacity 0.18s;
  border: 1px solid rgba(255,255,255,0.10);
}

.social-btn:hover { transform: translateY(-3px); opacity: 0.85; }

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--clr-white);
  flex-shrink: 0;
}

.s-x         { background: #000000; }
.s-instagram { background: radial-gradient(circle at 30% 110%, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.s-whatsapp  { background: #25D366; }

/* ─── Link a login ──────────────────────────────────────────── */
.switch-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.80rem;
  color: var(--clr-muted);
}
.switch-link a {
  color: var(--clr-orange);
  text-decoration: none;
  font-weight: 500;
}
.switch-link a:hover { text-decoration: underline; }

/* ─── Animaciones ───────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .side-logo, .divider-v, .auth-panel { animation: none; opacity: 1; }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .page-wrap {
    flex-direction: column;
    gap: 24px;
    padding: 32px 16px 40px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 40px;
  }
  .divider-v { display: none; }
  .side-logo img.logo-img { width: min(200px, 70vw); }
  .auth-panel { padding: 28px 20px 26px; max-width: 100%; width: 100%; }
  .btn-metamask { font-size: 0.82rem; padding: 10px 16px; }
}

@media (max-width: 360px) {
  .auth-panel { padding: 22px 14px 22px; }
  .panel-title { font-size: 1.35rem; }
}
