@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #3e1a4e, #1a1a1a 100%);
  height: 100vh;
  color: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* === CONTENEDOR PRINCIPAL === */
.container {
  position: relative;
  display: flex;
  width: 85%;
  max-width: 1000px;
  min-height: 550px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 1s ease forwards;
}

/* Animación del borde externo */
.container::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 16px;
  /*background: linear-gradient(90deg, #8a2be2, #b483d3, #1a1a1a, #8a2be2);*/
  background-size: 300% 300%;
  z-index: -1;
  animation: borderFlow 6s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}


label {
  color: white;
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
}


/* === PANEL IZQUIERDO (LOGIN) === */
.login-form {
  flex: 1;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Esto centra los elementos horizontalmente */


}

.login-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #8a2be2;
}

.login-form .subtitle {
  font-weight: 500;
  margin-bottom: 24px;
  color: #aaa;
}

/* === LOGO === */
.login-form .LogoB2,
.register-form .LogoB2 {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #8a2be2);
}

/* === CAMPOS DEL FORMULARIO CON BORDE ANIMADO === */
form p {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  position: relative;
}

form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background-color: rgba(21, 21, 21, 0.9);
  color: #fff;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

form input::placeholder {
  color: #666;
}

/* Animación de borde en inputs */
form input::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, #8a2be2, #b483d3, #1a1a1a, #8a2be2);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: -1;
}


.forgot {
  color: white;
  font-size: 14px;
  text-decoration: none;
  margin: 0px 0 10px 0;
  display: inline-block;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.forgot:hover {
  opacity: 1;
  text-decoration: underline;
}


/* === BOTÓN LOGIN === */
.btn-login {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  padding: 15px;
  margin: 20px auto;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  z-index: 1;
  width: 100%;
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, #8a2be2, #b483d3, #1a1a1a, #8a2be2);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: -1;
}

.btn-login:hover {
  transform: scale(1.05);
}

/* === BOTÓN SIGNUP === */
.btn-signup {
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #8a2be2;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.btn-signup::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, #8a2be2, #b483d3, #1a1a1a, #8a2be2);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: -1;
}

/* === PANEL DERECHO CON IMAGEN (REGISTRO) === */
.side-panel {
  flex: 1;
  background-image: url("/static/login_module/img/img10.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
  border-radius: 0px ;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.65);
  height: 100%;
  padding: 90px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}


/* Animación igual al login */
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 1
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;

  background-color: #fff;
  color: #555;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;

  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 20px;

  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.google-login-btn img {
  width: 20px;
  height: 20px;

}

.google-login-btn:hover {
  background-color: #f8f8f8;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}


.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #666;
}

.separator::before {
  margin-right: 10px;
}

.separator::after {
  margin-left: 10px;
}

.separator span {
  color: #ccc;
  font-weight: 500;
}
