/* =========================
   Play Win – Panel (Dark Neon)
   Mejorado + Responsivo + Accesible
   ========================= */

:root{
  /* Paleta base */
  --bg:#060912;
  --text:#e6f0ff;
  --muted:#a8b7d6;
  --brand:#6ee7ff;
  --accent:#00ffa3;
  --card:#0c1324;
  --border:#172238;

  /* Elevación y efectos */
  --shadow: 0 12px 32px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(110,231,255,.35);

  /* Tipografía fluida */
  --fs-100: clamp(0.85rem, 0.78rem + 0.2vw, 0.95rem);
  --fs-200: clamp(0.95rem, 0.88rem + 0.25vw, 1.05rem);
  --fs-300: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
  --fs-400: clamp(1.45rem, 1.25rem + 0.8vw, 1.9rem);

  /* Espaciados */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 28px;
  --radius-1: 10px;
  --radius-2: 14px;
  --radius-3: 20px;

  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color:var(--text);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(110,231,255,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(0,255,163,.12), transparent 60%),
    var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{color:inherit; text-decoration:none}
a:hover{ text-decoration: underline; text-underline-offset: 2px; }

/* =========================
   Layout
   ========================= */
.wrap{
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
}

@media (max-width: 980px){
  .wrap{ grid-template-columns: 1fr; }
}

/* Lado de marca / copy */
.brand-side{
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (max-width: 980px){
  .brand-side{
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px;
  }
}

.header{
  display:flex; align-items:center; gap: var(--space-2);
}
.logo{
  width:46px; height:46px; border-radius: 12px; display:grid; place-items:center; font-weight:800;
  background: conic-gradient(from 220deg, var(--brand), #7c4dff, var(--accent));
  color:#0a0e18;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), inset 0 0 20px rgba(255,255,255,.15);
}
.title{ margin:0; font-size: var(--fs-300); letter-spacing:.3px; }
.copy{ color:var(--muted); max-width: 58ch; font-size: var(--fs-200); }

/* Panel derecho / tarjeta */
.card{
  display:grid; place-items:center; padding: clamp(18px, 2.5vw, 36px);
}
.box{
  width:100%; max-width: 520px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(120%) blur(4px);
}

h1,h2,h3{ margin:0 0 6px; }
h2{ font-size: var(--fs-400); }
p.muted{ color:var(--muted); margin: 0 0 12px; font-size: var(--fs-200); }

/* =========================
   Formularios
   ========================= */
label{ display:block; margin: 12px 0 6px; font-size: var(--fs-100); color: var(--muted); }

input[type=text],
input[type=password],
input[type=email],
input[type=number],
select,
textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b1426;
  color: var(--text);
  font-size: var(--fs-200);
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder{ color: #8aa0c9; }

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(110,231,255,.6);
  box-shadow: var(--ring);
}

/* Estados de validación */
input[aria-invalid="true"],
input:invalid{
  border-color: #ff6b7a;
  box-shadow: 0 0 0 3px rgba(255,107,122,.25);
}

/* Autofill fixes (dark) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0b1426 inset;
  box-shadow: 0 0 0 1000px #0b1426 inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================
   Botones
   ========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-200);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-wrap: balance;
}
.btn:hover{ background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{ box-shadow: var(--ring); border-color: rgba(110,231,255,.5); }

.btn.brand{
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #001019;
  font-weight: 800;
  letter-spacing: .2px;
}
.btn.brand:hover{ filter: brightness(1.03); }
.btn.brand:active{ transform: translateY(1px) scale(0.997); }

/* Botón fantasma utilitario */
.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
}
.btn.ghost:hover{ background: rgba(255,255,255,.04); }

/* =========================
   Alertas / Mensajes
   ========================= */
.alert{ padding: 10px 12px; border-radius: 12px; margin: 10px 0; border:1px solid; }
.alert.error{ background:#2d1220; border-color:#5b1e33; color:#ffd6e4; }
.alert.ok{ background:#0f1f15; border-color:#1e3a2a; color:#b9ffdf; }
.alert.info{ background:#101a2a; border-color:#1b2b4a; color:#cfe6ff; }

/* =========================
   Utilidades
   ========================= */
.container{ width:min(100%, 1100px); margin-inline:auto; padding-inline: clamp(12px, 4vw, 24px); }
.center{ display:grid; place-items:center; }
.stack > * + * { margin-top: var(--space-3); }
.row{ display:flex; flex-wrap:wrap; gap: var(--space-2); }
.full{ width:100% }
.hidden{ display:none !important; }

/* Accesibilidad: esconder visualmente pero accesible para lectores */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* =========================
   Tarjetas / listas (por si las usas en el panel)
   ========================= */
.list{
  display: grid;
  gap: 12px;
}
.card-item{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

/* =========================
   Preferencias de Animación
   ========================= */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
