
/* ====== REGISTRARSE GENERAL ====== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(
      rgba(240, 226, 220, 0.5),
      rgba(190, 164, 156, 0.7)
    ),
    url("../assets/img/fondologin.jpg") center center / cover no-repeat;
  min-height: 100dvh; /* ✅ permite crecer según el contenido */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* ✅ empieza arriba para que haya espacio si crece */
  padding: 40px 0; /* ✅ agrega aire arriba y abajo */
  overflow-x: hidden;
  overflow-y: auto; /* ✅ habilita scroll vertical */
}


/* ====== SPLIT CONTAINER ====== */
.split-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  position: relative;
}

/* ====== FORM SIDE ====== */
.form-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  position: relative;
  overflow: hidden;
}

/* ====== PARTICLE EFFECTS ====== */
.form-side::before, .form-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  width: 15px;
  height: 15px;
  animation: floatParticle 8s infinite;
  opacity: 0.6;
}

.form-side::after {
  width: 10px;
  height: 10px;
  top: 50%;
  left: 70%;
  animation-delay: 3s;
}

/* ====== FLOATING PARTICLES ANIMATION ====== */
@keyframes floatParticle {
  0% { transform: translateY(0px) translateX(0px); opacity: 0.5; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.7; }
  50% { transform: translateY(-40px) translateX(-10px); opacity: 0.6; }
  75% { transform: translateY(-60px) translateX(5px); opacity: 0.8; }
  100% { transform: translateY(-80px) translateX(0px); opacity: 0.5; }
}

/* ====== FORM CARD ====== */
.register-form {
  width: 100%;
  max-width: 450px;
  padding: 45px;
  text-align: center;
  border-radius: 20px;
  position: relative;
  animation: fadeUp 0.8s ease forwards;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    0 0 15px rgba(255,255,255,0.1) inset;
  backdrop-filter: blur(15px) saturate(180%);
}

/* ====== SHIMMER CARD ====== */
.register-form::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.5s ease;
}

.register-form:hover::after {
  top: -20%;
  left: -20%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
}

/* ====== INPUT CONTAINER ====== */
.input-container {
  position: relative;
  margin-bottom: 20px;
}

.input-container i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #b78e82;
  transition: 0.3s;
}

.input-container input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 2px solid #b78e82;
  background: linear-gradient(145deg, #fffdfb, #f5eae5);
  color: #3e2723;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.input-container input:nth-child(2) { animation-delay: 0.2s; }
.input-container input:nth-child(4) { animation-delay: 0.4s; }
.input-container input:nth-child(6) { animation-delay: 0.6s; }
.input-container input:nth-child(8) { animation-delay: 0.8s; }

.input-container input:focus,
.input-container input:hover {
  border-color: #a46b5c;
  box-shadow: 0 0 12px rgba(164, 107, 92, 0.4);
  transform: scale(1.03);
}

/* ====== BUTTON ====== */
.btn-submit {
  background: linear-gradient(90deg, #a46b5c, #c49485);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 12px;
  width: 100%;
  color: #fff;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
}

/* ====== BUTTON SHIMMER ====== */
.btn-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0.4), rgba(255,255,255,0.15));
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.btn-submit:hover::after {
  left: 125%;
}

.btn-submit:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  background: linear-gradient(90deg, #8b584b, #b48071);
}

/* ====== ALERT ====== */
.alert {
  background: rgba(255, 230, 230, 0.9);
  border: 1px solid #b84b4b;
  color: #7b2424;
  font-size: 14px;
  border-radius: 8px;
  margin-top: 10px;
}

/* ====== LINKS ====== */
.register-form a {
  color: #a46b5c;
  text-decoration: none;
  font-weight: 600;
}

.register-form a:hover {
  text-decoration: underline;
}

/* ====== GRAPHIC SIDE ====== */
.graphic-side {
  flex: 1;
  background: url("../assets/img/fondologin.jpg") center center / cover no-repeat;
  position: relative;
}

.graphic-side .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  .graphic-side {
    display: none;
  }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
