/* =================== */
/* VARIABLES CSS       */
/* =================== */
:root {
  /* COLORES */
  --color-primario: #43cea2;
  --color-secundario: #cdebd5;
  --color-fondo: linear-gradient(135deg, #cdebd5, #8bc6a9);
  --color-blanco: #ffffff;

  /* TEXTOS */
  --texto-principal: #2f2f2f;
  --texto-secundario: #666666;
  --texto-destacado: #43cea2;

  /* SOMBRAS */
  --sombra-principal: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* =================== */
/* RESET               */
/* =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-fondo);
}

/* =================== */
/* TIPOS DE TEXTO      */
/* =================== */
.text-principal {
  color: var(--texto-principal);
}

.text-secundario {
  color: var(--texto-secundario);
}

.text-destacado {
  color: var(--texto-destacado);
  font-weight: bold;
}

/* =================== */
/* CONTENEDOR PRINCIPAL*/
/* =================== */
.login-container {
  width: 800px;
  min-height: 700px;
  display: flex;
  background: var(--color-blanco);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra-principal);
}

/* =================== */
/* PANEL IZQUIERDO     */
/* =================== */
.login-left,
.register-left {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =================== */
/* REGISTRO OCULTO     */
/* =================== */
.register-left {
  display: none;
}

/* =================== */
/* TOGGLE FORMULARIOS  */
/* =================== */
.login-container.register-active .login-left {
  display: none;
}

.login-container.register-active .register-left {
  display: flex;
}

.login-container.register-active .login-right {
  order: -1;
}

/* =================== */
/* LOGO                */
/* =================== */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.logo-container img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

/* =================== */
/* BY IGNIS            */
/* =================== */
.by-ignis {
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}

/* =================== */
/* TITULOS             */
/* =================== */
.login-left h2,
.register-left h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--texto-secundario);
  letter-spacing: 1px;
}

/* =================== */
/* TEXTO EXPLICATIVO   */
/* =================== */
.text-explicativo {
  text-align: center;
  font-size: 14px;
  margin-bottom: 25px;
}

/* =================== */
/* FORMULARIOS         */
/* =================== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =================== */
/* INPUTS              */
/* =================== */
.input-box {
  position: relative;
}

.input-box input {
  width: 100%;
  padding: 14px 40px 14px 14px;
  border: 2px solid var(--color-primario);
  border-radius: 8px;
  font-size: 16px;
  color: var(--texto-principal);
  background: var(--color-blanco);
  outline: none;
}

.input-box input:focus {
  box-shadow: 0 0 8px var(--color-primario);
}

/* LABEL FLOTANTE */
.input-box label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--color-primario);
  background: var(--color-blanco);
  padding: 0 6px;
  transition: 0.3s;
  pointer-events: none;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -9px;
  font-size: 12px;
}

/* ICONOS INPUT */
.input-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primario);
}

/* =================== */
/* BOTON PRINCIPAL     */
/* =================== */
.btn {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--color-primario);
  color: var(--color-blanco);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px var(--color-primario);
}

/* =================== */
/* SEPARADOR           */
/* =================== */
.separator {
  width: 100%;
  height: 2px;
  margin: 10px 0;
  background: linear-gradient(
    90deg,
    var(--color-primario),
    var(--color-secundario),
    var(--color-primario)
  );
  background-size: 200% 100%;
  animation: neonFlow 2.5s linear infinite;
}

@keyframes neonFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =================== */
/* BOTONES SOCIALES    */
/* =================== */
.contenedor-botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contenedor-botones button {
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

/* GOOGLE */
.btn-google {
  background: #db4437;
}

.btn-google:hover {
  box-shadow: 0 0 15px #db4437;
}

/* FACEBOOK */
.btn-facebook {
  background: #1877f2;
}

.btn-facebook:hover {
  box-shadow: 0 0 15px #1877f2;
}

/* =================== */
/* TEXTO TOGGLE        */
/* =================== */
.toggle-text {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.toggle-text span {
  cursor: pointer;
}

/* =================== */
/* PANEL DERECHO       */
/* =================== */
.login-right {
  flex: 1;
  background: var(--color-primario);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.login-right img {
  width: 100%;
  max-width: 380px;
}

/* =================== */
/* PARTICULAS          */
/* =================== */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--color-fondo);
}

/* =================== */
/* RESPONSIVE          */
/* =================== */
@media (max-width: 992px) {
  .login-container {
    width: 90%;
    flex-direction: column;
  }

  .login-right {
    order: -1;
  }

  .login-left,
  .register-left,
  .login-right {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .login-left h2,
  .register-left h2 {
    font-size: 22px;
  }

  .btn,
  .contenedor-botones button {
    font-size: 14px;
  }
}
