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

html, body {
  height: 100%;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden !important;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  max-height: 100vh;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  font-family: Roboto, sans-serif;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Quitar padding en móviles para evitar scroll innecesario */
@media screen and (max-width: 600px) {
  body {
    padding: 0 !important;
  }
}

/* ----------------------- ESTILOS PRINCIPALES ------------------------- */

#logo {
  width: 18em;
  max-width: 320px;
  min-width: 90px;
  margin: 0 auto 0.2em auto;
  display: block;
  transition: width 0.25s;
}

#tittle, #loyalty {
  color: #fff;
  font-family: "Italianno", cursive;
  font-weight: normal;
  margin: 0.2em 0;
  text-align: center;
  letter-spacing: 1px;
}

#tittle {
  font-size: 5em;
}

#loyalty {
  font-size: 3em;
  margin-top: 0.15em;
  margin-bottom: 0.15em;
  font-weight: normal;
}

#parrafo a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

#sign, #register {
  color: #fff;
  font-size: 2em;
  font-weight: normal;
  margin-top: 1em;
  text-align: center;
}

.input, .button-group {
  width: 100%;
  max-width: 350px;
  min-width: 180px;
  margin: 5px auto;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0px auto 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 350px;
  min-width: 180px;
}

.button-group button,
#accederButton,
#registerButton,
#validationButton {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 15px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  background: #2870ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0px;
  box-sizing: border-box;
}

.input,
input[type="date"].input,
input[type="date"] {
  border: none;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  font-size: 1.2em;
  display: block;
  background: #fff;
  width: 100%;
  max-width: 350px;
  min-width: 180px;
  box-sizing: border-box;
}

#accederButton:hover,
#registerButton:hover,
#validationButton:hover {
  filter: brightness(1.1);
}

#accederButton {
  background: #d2d2d2 !important;
  color: #111 !important;
  border: none;
  transition: filter 0.2s;
}

#accederButton:hover {
  filter: brightness(0.95);
}

/* --- OTP/VERIFY Responsive --- */
#verifyPage {
  color: #fff;
  text-align: center;
  font-family: "Roboto", sans-serif;
}
#verifyPage h1 {
  margin: 35px 0;
  font-size: 40px;
}
#verifyPage p {
  font-size: 17px;
}
#verifyForm {
  margin: 30px;
}
#verification_code {
  padding: 10px;
  font-size: 15px;
  text-align: center;
}
.code {
  width: 45px;
  height: 45px;
  margin: 5px;
  text-align: center;
  font-size: 40px;
  border: none;
  border-radius: 10px;
}
.otpPage h1 {
  color: #fff;
  margin: 35px 0;
  font-size: 40px;
}
.otpPage p {
  color: #fff;
  font-size: 17px;
}

/* Redes sociales igual que antes */
#socialMedia {
  display: flex;
  color: #fff;
  position: static;
  align-content: center;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  margin: 56px auto 0 auto;
  gap: 24px;
  width: 100vw;
}
#socialMedia p {
  margin: 0 20px 0 0;
}
#socialMedia span {
  font-size: 1.2em;
  position: relative;
  top: 7px;
}
#socialMedia a {
  text-decoration: none;
  color: #fff;
}
.mediaLogos {
  width: 2.5em;
  margin: 0px 10px -10px 0px;
  vertical-align: middle;
}

/* --- BOTÓN REGRESO responsive --- */
#homeContent {
  display: flex;
  position: absolute;
  top: 25px;
  left: 32px;
  z-index: 10;
  align-items: center;
}
#homeContent a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.15em;
  font-weight: bold;
  background: rgba(30,30,30,0.37);
  border-radius: 9px;
  padding: 7px 14px;
  transition: background .18s;
}
#homeContent a:hover {
  background: #2870ff;
  color: #fff;
}
#home {
  width: 2em;
  margin-right: 8px;
}
#homeText {
  color: #fff;
  font-size: 1em;
  text-decoration: underline;
}

/* ----------- MEDIA QUERIES ------------ */

/* MOBILE - Títulos y branding grandes y visibles */
@media screen and (max-width: 600px) {
  #logo { width: 54vw; min-width: 70px; max-width: 150px; }
  #tittle {
    font-size: 5em !important;
    line-height: 1.07;
    letter-spacing: 1.5px;
  }
  #loyalty {
    font-size: 3.5em !important;
    line-height: 1.15;
    letter-spacing: 1.2px;
  }
  #sign, #register {
    font-size: 1.35em !important;
  }
  .input, .button-group, input[type="date"].input, input[type="date"] {
    font-size: 1.22em !important;
    width: 93vw;
    max-width: 93vw;
    min-width: 0;
  }
}

@media screen and (max-width: 400px) {
  #tittle {
    font-size: 3.2em !important;
  }
  #loyalty {
    font-size: 2.2em !important;
  }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
  #logo { width: 25vw; min-width: 80px; max-width: 140px; }
  #tittle { font-size: 3.5em; }
  #loyalty { font-size: 2.1em; }
  .input, .button-group, input[type="date"].input, input[type="date"] { width: 77vw; max-width: 330px; min-width: 0; }
  #socialMedia { margin-top: 54px; }
  #verifyPage h1, .otpPage h1 { font-size: 1.5em; }
  #verifyPage p, .otpPage p { font-size: 1.12em; }
  .code { width: 35px; height: 35px; font-size: 1.18em; }
}

/* Landscape celulares y tablets */
@media screen and (max-width: 900px) and (orientation: landscape) {
  #logo { width: 15vw; min-width: 45px; max-width: 90px; }
  #tittle { font-size: 1.8em; }
  #loyalty { font-size: 1.4em; }
  .input, .button-group, input[type="date"].input, input[type="date"] { width: 60vw; max-width: 270px; min-width: 80px; }
  #socialMedia { margin: 38px auto 0 auto; gap: 8px; font-size: 0.97em; }
  #verifyPage h1, .otpPage h1 { font-size: 1.1em; }
  #verifyPage p, .otpPage p { font-size: 0.92em; }
  .code { width: 27px; height: 27px; font-size: 0.98em; }
}

/* Desktop breakpoint */
@media screen and (min-width: 1025px) {
  body { max-width: 100vw; margin: auto; }
  #logo { width: 14em; max-width: 180px; min-width: 80px;}
  #tittle { font-size: 4.5em; }
  #loyalty { font-size: 2.5em; }
  .input, .button-group, input[type="date"].input, input[type="date"] { max-width: 330px; width: 330px; min-width: 180px; }
  #socialMedia { margin-top: 50px; }
  #verifyPage h1, .otpPage h1 { font-size: 2.1em; }
  #verifyPage p, .otpPage p { font-size: 1.25em; }
}

/* 2K+ */
@media screen and (min-width: 1400px) {
  #logo { width: 15em; max-width: 220px; }
  #tittle { font-size: 6.2em; }
  #loyalty { font-size: 3.2em; }
  .input, .button-group, input[type="date"].input, input[type="date"] { max-width: 350px; width: 350px; min-width: 180px; }
  #socialMedia { margin-top: 64px; }
  #verifyPage h1, .otpPage h1 { font-size: 2.5em; }
  #verifyPage p, .otpPage p { font-size: 1.35em; }
}

@media screen and (min-width: 2000px) {
  body { max-width: 950px; margin: auto; padding: 5em 0 !important; }
  #logo { width: 16em; max-width: 250px; }
  #tittle { font-size: 7em; }
  #loyalty { font-size: 4em; }
  .input, .button-group, input[type="date"].input, input[type="date"] { width: 350px; max-width: 350px; min-width: 180px; }
  #socialMedia { margin-top: 68px; }
  #verifyPage h1, .otpPage h1 { font-size: 3em; }
  #verifyPage p, .otpPage p { font-size: 1.55em; }
}

@media screen and (min-width: 2600px) {
  body { max-width: 1100px; margin: auto; padding: 7em 0 !important; }
  #logo { width: 18em; }
  #tittle { font-size: 9em; }
  #loyalty { font-size: 5em; }
  .input, .button-group, input[type="date"].input, input[type="date"] { width: 350px; max-width: 350px; min-width: 180px; }
  #socialMedia { margin-top: 90px; }
  #verifyPage h1, .otpPage h1 { font-size: 3.4em; }
  #verifyPage p, .otpPage p { font-size: 1.8em; }
}

/* Siempre elimina scroll horizontal */
@media screen and (max-width: 900px) {
  html, body { overflow-x: hidden !important; }
}
#error, .error, .errorPhp, #mensajeError {
  color: #ff0000 !important;
  margin-top: 10px !important;
  font-size: 1.08em !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
