/* ==========================================================================
   LOGIN — APPLE TV + TOTALPLAY / LEAGUES CUP
   Reemplaza por completo el login.css anterior.
   El archivo incluye compatibilidad con el HTML actual y clases para el
   nuevo encabezado que agregaremos en el siguiente paso.
   ========================================================================== */

:root{
  --tp-black:#000;
  --tp-white:#fff;
  --tp-green:#28f000;
  --tp-gray-100:#f4f4f4;
  --tp-gray-300:#d5d5d5;
  --tp-gray-600:#686868;
  --tp-danger:#d92d20;
  --tp-radius-sm:10px;
  --tp-radius-md:16px;
  --tp-radius-pill:999px;
  --tp-shadow:0 12px 34px rgba(0,0,0,.10);
  --tp-font:"Rubik","Helvetica Neue",Arial,sans-serif;
  --tp-font-condensed:"Roboto Condensed","Arial Narrow",Arial,sans-serif;
}

*,
*::before,
*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  min-height:100%;
  background:var(--tp-white);
}

body{
  min-height:100svh;
  overflow-x:hidden;
  background:var(--tp-white) !important;
  color:var(--tp-black);
  font-family:var(--tp-font);
  cursor:auto;
}

button,
input,
select,
textarea{
  font:inherit;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
}

/* --------------------------------------------------------------------------
   Estructura general
   -------------------------------------------------------------------------- */

.container{
  width:min(100%, 560px);
  min-height:100svh;
  margin:0 auto;
  padding:18px 28px 24px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  background:var(--tp-white);
}

/* El login anterior tenía una tarjeta de cristal. En esta campaña desaparece. */
.container-register{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:block;
  color:var(--tp-black);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.container-forms{
  width:100%;
}

.container-forms form{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

.container-forms h2{
  margin:20px 0 16px;
  color:var(--tp-black);
  font-family:var(--tp-font-condensed);
  font-size:clamp(1.6rem,5vw,2.2rem);
  font-weight:900;
  line-height:1;
  text-align:center;
  text-transform:uppercase;
  text-shadow:none;
}

/* ==========================================================
   BANNER DEL LOGIN
   ========================================================== */

.login-banner-container{
  width:100%;
  margin:0 0 20px;
  overflow:hidden;
  border-radius:12px;
}

.login-banner{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
  border-radius:12px;
}

/* Ajuste para celulares */
@media screen and (max-width:560px){

  .login-banner-container{
    margin-bottom:16px;
    border-radius:10px;
  }

  .login-banner{
    border-radius:10px;
  }
}

/* --------------------------------------------------------------------------
   Encabezado de campaña — para el HTML nuevo
   -------------------------------------------------------------------------- */

.campaign-login-header{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.totalplay-top-logo{
  width:92px;
  height:auto;
  margin:0 auto 2px;
}

.campaign-main-banner{
  width:100%;
  aspect-ratio:2.55 / 1;
  object-fit:cover;
  object-position:center;
  border-radius:12px;
  background:#111;
}

.partner-strip{
  width:100%;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 0 4px;
}

.partner-copy{
  max-width:235px;
  font-family:var(--tp-font-condensed);
  font-size:clamp(1rem,3.9vw,1.25rem);
  font-weight:900;
  line-height:.88;
  text-align:left;
  text-transform:uppercase;
}

.apple-tv-logo{
  width:86px;
  height:auto;
  margin-left:auto;
}

/* --------------------------------------------------------------------------
   Login actual: campos de correo y contraseña
   -------------------------------------------------------------------------- */

.container-forms label{
  display:block;
  margin:0 0 6px;
  color:var(--tp-black);
  font-size:.84rem;
  font-weight:700;
  text-align:left;
}

.container-forms input[type="email"],
.container-forms input[type="password"],
.container-forms input[type="text"],
.container-forms input[type="date"],
.container-forms input[type="tel"],
.container-forms input[type="number"]{
  width:100%;
  max-width:none;
  min-height:44px;
  margin:0 0 12px;
  padding:10px 16px;
  color:var(--tp-black);
  background:var(--tp-white);
  border:1px solid #111;
  border-radius:var(--tp-radius-pill);
  outline:none;
  box-shadow:none;
  text-align:left;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.container-forms input::placeholder{
  color:#777;
}

.container-forms input:focus{
  border-color:var(--tp-black);
  box-shadow:0 0 0 3px rgba(0,0,0,.12);
}

.boton-iniciar-sesion,
#registro input[type="submit"]{
  width:100%;
  max-width:none;
  min-height:46px;
  margin:8px 0 0;
  padding:11px 18px;
  color:var(--tp-white);
  background:var(--tp-black);
  border:1px solid var(--tp-black);
  border-radius:var(--tp-radius-pill);
  box-shadow:none;
  font-size:.95rem;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform .16s ease, opacity .16s ease;
}

.boton-iniciar-sesion:hover,
#registro input[type="submit"]:hover{
  transform:translateY(-1px);
}

.boton-iniciar-sesion:active,
#registro input[type="submit"]:active{
  transform:translateY(0);
}

#toggle-text{
  margin:3px 0 8px;
  color:#555;
  font-size:.76rem;
  line-height:1.35;
  text-align:center;
}

#toggle-link{
  color:var(--tp-black);
  font-weight:800;
}

/* --------------------------------------------------------------------------
   Variante de acceso mediante pregunta y tres opciones
   -------------------------------------------------------------------------- */

.login-step{
  width:100%;
  margin-top:6px;
}

.account-badge{
  width:max-content;
  min-width:36px;
  margin:0 auto 8px;
  padding:1px 9px 2px;
  color:var(--tp-black);
  background:var(--tp-white);
  border:1px solid var(--tp-black);
  border-radius:var(--tp-radius-pill);
  font-size:.95rem;
  font-weight:700;
  line-height:1.2;
}

.login-question{
  width:100%;
  margin:0 0 12px;
  padding:8px 18px;
  color:var(--tp-white);
  background:var(--tp-black);
  border-radius:var(--tp-radius-pill);
  font-size:clamp(.72rem,2.5vw,.9rem);
  font-weight:400;
  line-height:1.25;
  text-align:center;
}

.login-answer-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.login-answer{
  min-height:34px;
  padding:7px 9px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--tp-black);
  background:var(--tp-white);
  border:1px solid var(--tp-black);
  border-radius:var(--tp-radius-pill);
  box-shadow:0 2px 0 rgba(0,0,0,.18);
  font-size:clamp(.55rem,1.9vw,.7rem);
  font-weight:700;
  line-height:1.1;
  text-align:center;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-answer:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 9px rgba(0,0,0,.14);
}

.login-answer.is-selected,
.login-answer[aria-checked="true"]{
  color:var(--tp-black);
  background:var(--tp-green);
  border-color:var(--tp-green);
  box-shadow:0 0 18px rgba(40,240,0,.75);
}

/* --------------------------------------------------------------------------
   Registro
   -------------------------------------------------------------------------- */

#registro{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:0;
  color:var(--tp-black);
}

/* --------------------------------------------------------------------------
   Términos, errores y popup
   -------------------------------------------------------------------------- */

.terminos-condiciones{
  order:10;
  margin:16px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#444;
  font-size:.65rem;
  text-align:center;
}

.terminos-condiciones label{
  margin:0;
  color:#444;
  font-size:inherit;
  font-weight:400;
  text-align:center;
}

.terminos-condiciones input{
  width:15px;
  height:15px;
  accent-color:var(--tp-black);
}

#terminosLabel,
.texto-terminos-condiciones{
  color:var(--tp-black);
  font-weight:700;
  cursor:pointer;
}

.mensaje-error{
  width:100%;
  margin:0 0 10px;
  padding:9px 12px;
  color:var(--tp-danger);
  background:#fff1f0;
  border:1px solid #fda29b;
  border-radius:10px;
  font-size:.78rem;
  font-weight:700;
  text-align:center;
}

.popup{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
}

.popup.open{
  display:flex;
}

.popup-content{
  width:min(720px,100%);
  max-height:88svh;
  overflow:auto;
  padding:24px;
  color:var(--tp-black);
  background:var(--tp-white);
  border-radius:16px;
  box-shadow:var(--tp-shadow);
  font-size:.84rem;
  line-height:1.5;
  text-align:left;
}

.popup-content h2,
.popup-content h3{
  margin:0 0 14px;
  font-family:var(--tp-font-condensed);
  line-height:1.05;
  text-align:left;
}

.popup-content p,
.popup-content li{
  margin-bottom:10px;
  text-align:left;
}

.popup-content ol{
  padding-left:22px;
}

#cerrarPopup{
  width:100%;
  margin-top:14px;
  padding:11px 18px;
  color:var(--tp-white);
  background:var(--tp-black);
  border:0;
  border-radius:var(--tp-radius-pill);
  font-weight:800;
  cursor:pointer;
}

/* Footer legal nuevo */
.campaign-legal{
  margin-top:18px;
  color:#555;
  font-size:.56rem;
  line-height:1.3;
  text-align:center;
}

/* Elementos viejos que no pertenecen a esta campaña */
.totalplay-phase-register,
.phase-totalplay,
.contenedor-animacion-personaje,
.nav-logo{
  display:none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width:560px){
  .container{
    width:100%;
    padding:14px 22px 22px;
  }

  .partner-strip{
    min-height:58px;
  }

  .apple-tv-logo{
    width:76px;
  }

  .login-answer-grid{
    gap:12px;
  }
}

@media (max-width:390px){
  .container{
    padding-inline:16px;
  }

  .partner-copy{
    max-width:190px;
  }

  .login-answer-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .login-answer{
    min-height:38px;
    font-size:.72rem;
  }
}

@media (min-width:900px){
  body{
    display:flex;
    align-items:flex-start;
    justify-content:center;
  }

  .container{
    width:620px;
    padding-top:22px;
  }
}