@import url("https://fonts.googleapis.com/css?family=Titillium+Web:400,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --color-primary: #00b6d1;
  --color-primary-hover: #1272a7;
  --color-primary-link: #00b6d1;
  --color-primary-link-hover: yellowgreen;
  --color-danger: rgb(252, 124, 173);
}

*,
:after,
:before {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
}
:after,
:before {
  display: block;
}
body {
  font-family: "Montserrat", sans-serif;
  color: #ffffff !important;
  overflow-x: hidden;
  background-color: #15151f;
}
ol,
ul {
  list-style: none;
}
a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-primary-link);
}
a:hover {
  color: var(--color-primary-link-hover) !important;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-row,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
p,
ul {
  margin: 0;
}
button,
input[type="password"],
input[type="text"],
label,
select,
textarea {
  font-family: "Montserrat", sans-serif;
}
label {
  display: block;
  margin: 0;
  color: #3e3f5e;
  line-height: 1em;
}

input[type="password"]::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder {
  color: #adafca;
  font-size: 0.875rem;
  font-weight: 500;
}
input[type="password"]::-moz-placeholder,
input[type="text"]::-moz-placeholder {
  color: #adafca;
  font-size: 0.875rem;
  font-weight: 500;
}
input[type="password"]:-ms-input-placeholder,
input[type="text"]:-ms-input-placeholder {
  color: #adafca;
  font-size: 0.875rem;
  font-weight: 500;
}
input[type="password"]::-ms-input-placeholder,
input[type="text"]::-ms-input-placeholder {
  color: #adafca;
  font-size: 0.875rem;
  font-weight: 500;
}
input[type="password"]::placeholder,
input[type="text"]::placeholder {
  color: #adafca;
  font-size: 0.875rem;
  font-weight: 500;
}
::-moz-selection {
  color: #fff;
  background-color: var(--color-primary);
}
::selection {
  color: #fff;
  background-color: var(--color-primary);
}
a,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  line-height: 1em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
p .reaction {
  width: 20px;
  height: 20px;
  margin: 0 2px;
  position: relative;
  top: -2px;
}
p .reaction:first-child {
  margin-left: 0;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}
.button {
  padding-left: 20px;
  padding-right: 20px;
  display: inline-block;
  height: 52px;
  border-radius: 7px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 52px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  box-shadow: 3px 5px 10px 0 rgba(62, 63, 94, 0.2);
}
.button:hover {
  color: #fff !important;
  background-color: var(--color-primary-hover);
}
.form {
  width: 100%;
}
.form-row {
  width: 100%;
}
.form-row + .form-row {
  margin-top: 14px;
}
.form-row.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-row.space-between .form-item {
  width: auto;
}
.form-item {
  width: 100%;
}
.form-input {
  position: relative;
}
.form-input.active label {
  background-color: #fff;
  padding: 0 6px;
  font-size: 0.75rem;
  top: -6px;
  left: 12px;
}
.form-input label {
  color: #adafca;
  font-size: 1rem;
  font-weight: 600;
  position: absolute;
  top: 20px;
  left: 20px;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}
.form-box {
  width: 100%;
  max-width: 484px;
  padding: 44px;
  border-radius: 12px;
  background-color: #00000042;
  box-shadow: 0 0 60px 0 rgba(94, 92, 154, 0.12);
  position: relative;
}
.form-box img {
  display: block;
  margin: 0 auto 25px;
  width: 120px;
}
.form-box .form-box-decoration {
  position: absolute;
  top: -14px;
  left: -80px;
}
.form-box .form-box-decoration.overflowing {
  top: -68px;
}
.form-box .form-box-title {
  color: #dcdcdc !important;
  font-size: 1.625rem;
  text-align: center;
}
.form-box .form {
  margin-top: 18px;
}
.form-box .lined-text {
  margin: 15px 0;
}
.form-box .form-text,
.form-box .social-links {
  margin-top: 30px;
}
.form-control {
  width: 100%;
  border-radius: 7px;
  font-size: 1.2rem;
  background-color: #fff;
  border: 1px solid #dedeea;
  color: #3e3f5e;
  transition: border-color 0.2s ease-in-out;
  height: 54px;
  padding: 0 18px;
}
.form-control:focus {
  border-color: #615dfa;
}
.form-control::placeholder {
  font-size: 1.2rem !important;
}

/* --- CONTENEDOR LANDING OPTIMIZADO PARA RESPONSIVE GLOBAL --- */
.landing {
  width: 100%;
  min-height: 100vh;
  background: url(../images/landing/bg.png) no-repeat center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
}
.landing .landing-decoration {
  width: 100%;
  height: 100%;
  background-color: #15151f !important;
  position: absolute;
  opacity: 0.6 !important;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}
.landing-info {
  width: 784px;
  max-width: 100%;
  text-align: center;
  z-index: 2;
}
.landing-form {
  width: 484px;
  max-width: 100%;
  z-index: 2;
}
.landing-form .form-box {
  position: relative;
  width: 100%;
}

/* Google button */
.google-signin-wrap {
  position: relative;
  overflow: hidden;
}
.google-signin-wrap .btn-google {
  width: 100%;
  border: 1px solid #d0d7de;
  border-radius: 7px;
  background: #ffffff;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1f2328;
  font-size: 16px;
  font-weight: 600;
}
.google-signin-wrap .btn-google:hover {
  background: #d0d7de !important;
}
.google-signin-wrap .google-signin-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0.001;
  pointer-events: auto;
  overflow: hidden;
}
/* Google button end */

.landing-info .logo {
  display: block !important;
  margin: 0 auto !important;
}
.landing-info .landing-info-pretitle,
.landing-info .landing-info-text,
.landing-info .landing-info-title,
.mobile-links {
  display: block;
}
.landing-info a {
  font-size: 1.3rem !important;
}
.landing-info .landing-info-pretitle,
.landing-info .landing-info-title {
  text-transform: uppercase;
}
.landing-info .landing-info-pretitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px !important;
}
.landing-info .landing-info-title {
  font-family: "Titillium Web", sans-serif;
  font-size: 6.5rem;
  font-weight: 900;
  color: #ffffff !important;
}
.landing-info .landing-info-subtitle, .landing-info .landing-info-subtitle-2 {
  font-size: 2rem;
  color: #ffffff !important;
  margin-top: 20px !important;
}
.landing-info-title.text-success {
  color: yellowgreen !important;
}
.landing-info-title.text-danger {
  color: var(--color-danger) !important;
}
.landing-info .landing-info-text {
  margin: 30px auto 0;
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-weight: 500;
}
.landing-info .landing-info-text-2 {
  margin: 30px auto 0;
  font-size: 1.2rem;
  line-height: 1.8rem;
  font-weight: 500;
  padding: 0 10px !important;
}
.landing-info .landing-info-text-2 span {
  margin-bottom: 10px;
  display: block;
}
.landing-info .button {
  margin-top: 30px;
}
.lined-text {
  font-size: 1rem;
  text-align: center;
  position: relative;
  color: #ffffff !important;
}
.lined-text:after,
.lined-text:before {
  content: "";
  width: 70px;
  height: 1px;
  background-color: #d9d9f3;
  position: absolute;
  top: 7px;
}
.lined-text:before {
  left: 0;
}
.lined-text:after {
  right: 0;
}
.mobile-links {
  display: none;
  width: 100%;
}
.mobile-links .landing-info-text {
  color: #fff;
}
.mobile-links a {
  color: var(--color-primary-link);
  font-size: 1.2rem;
  font-weight: 600;
}
.btn-container {
  display: block;
  width: 100%;
}
.swal2-confirm {
  background-color: var(--color-primary) !important;
}
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}
.toggle-password {
  position: absolute;
  right: 15px;
  color: #aaa;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  transition: color 0.2s;
}
.toggle-password:hover {
  color: #333;
}
.text-center {
  text-align: center !important;
}
.text-danger {
  color: var(--color-danger) !important;
}
.text-success {
  color: greenyellow !important;
}
.mb-10 {
  margin-bottom: 10px !important;
}
.mb-20 {
  margin-bottom: 20px !important;
}
.mt-10 {
  margin-top: 10px !important;
}
.mt-20 {
  margin-top: 20px !important;
}
.w-100 {
  width: 100% !important;
}
.register-socials {
  display: grid;
  gap: 10px;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.footer {
  position: absolute;
  bottom: 15px;
  left: 50%; /* Lo mueve a la mitad de la pantalla */
  transform: translateX(-50%); /* Lo centra exactamente sobre su propio eje */
  font-size: 0.85rem;
  color: #e3e3e3; /* Un tono grisáceo que combina con tus placeholders */
  text-align: center;
  z-index: 3; /* Asegura que quede por encima de la decoración de fondo */
  width: 100%; /* Evita que el texto se rompa en líneas en pantallas chicas */
  padding: 0px 10px;
  box-sizing: border-box;
}

.footer a {
  font-size: 0.85rem !important;
  font-weight: 600;
}

/* --- MEDIA QUERIES REDISEÑADOS Y CORREGIDOS --- */

/* Ajuste para pantallas grandes de TVs o monitores 2K/4K */
@media screen and (min-width: 2560px) {
  .landing {
    justify-content: space-around;
  }
}

/* Computadoras medianas y laptops */
@media screen and (max-width: 1500px) {
  .landing-info .landing-info-title {
    font-size: 4.5rem;
  }
}

/* El quiebre crítico (Tablets en vertical y pantallas inferiores a 1365px) */
@media screen and (max-width: 1365px) {
  .landing {
    padding: 20px;
    gap: 20px;
    justify-content: start;
  }
  .landing-info {
    width: 100%;
    margin-bottom: 0px;
  }
  .landing-info .logo {
    width: 100px;
    margin-bottom: 20px !important;
  }
  .landing-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .landing-form .form-box {
    max-width: 440px; /* Evitamos desbordes en los contenedores */
  }
  .desktop-links {
    display: none !important;
  }
  .mobile-links {
    display: block !important; /* Mostramos los links abajo de todo de forma ordenada */
    text-align: center !important;
    z-index: 2;
  }
}

/* Celulares grandes y medianos (Como el iPhone de tu captura) */
@media screen and (max-width: 1024px) {
  .landing .landing-decoration {
    opacity: 0.6 !important; /* Un fondo un poco más oscuro mejora la lectura de inputs en el celular */
  }
  .landing-info .landing-info-pretitle {
    display: none !important;
  }
  .landing-info .landing-info-title {
    font-size: 2.8rem !important;
    padding: 0 10px !important;
  }
  .landing-info .landing-info-subtitle {
    display: none !important;
  }
  .landing-info .landing-info-text-2 span {
    margin-bottom: 20px;
    display: block;
  }
  .form-box {
    padding: 30px 20px !important; /* Reducimos el padding interno del formulario para ganar espacio */
  }
}

/* Celulares ultra chicos */
@media screen and (max-width: 500px) {
  .form-box img {
    display: block;
    margin: 0 auto 25px;
    width: 100px;
  }
  .landing-info .landing-info-title {
    font-size: 3.5rem !important;
  }
  .landing-info .landing-info-subtitle, .landing-info .landing-info-subtitle-2 {
    font-size: 1.2rem !important;
    font-weight: 400;
  }
  .form-box .form-box-title {
    font-size: 1.4rem;
  }
}

@media screen and (max-height: 500px) {
  .footer {
    display: none !important;
  }
}
