* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow: hidden;
  background: linear-gradient(135deg, #A50064, #C4A9B7);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}

.card {
  width: 400px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  z-index: 10; /* <-- agrega esto */;
    display: flex;
    justify-content: center;
    align-items: center;
}


.card.flip {
  transform: rotateY(180deg);
}

.form-box {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.front { 
  z-index: 2;
}

.back {
  height: 600px;
  position: absolute;
  transform: rotateY(180deg);
  padding: 2rem;
  text-align: center;
}

.form-box h2 {
  margin-bottom: 10px;
  color: #A50064;
}

.form-box img {
  width: 120px;
  margin: 15px 0;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-group i {
  margin-right: 10px;
  color: #A50064;
}

.input-group input {
  border: none;
  outline: none;
  flex: 1;
  background: transparent;
  padding: 0.5rem;
}

.input-group:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn {
  margin-top: 10px;
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(45deg, #A50064, #FF7FA5);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(165, 0, 100, 0.4);
}

.extra-links {
  margin-top: 1rem;
  text-align: center;
}

.extra-links a {
  color: #A50064;
  font-size: 0.9rem;
  margin: 0 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.extra-links a:hover {
  text-decoration: underline;
}

.subtitle {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #777;
}


@keyframes shakeAnim {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.form-box.shake {
  animation: shakeAnim 0.5s;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none; 
}

.bubble {
  position: absolute;
  bottom: -5%;
  width: 20px;
  height: 20px;
  background: rgba(255, 182, 193, 0.5);
  border-radius: 50%;
  animation: rise 10s linear infinite;
  left: calc(20% * var(--i));
  animation-delay: calc(var(--i) * 2s);
}

@keyframes rise {
  0% { transform: translateY(0) scale(0.8); opacity:0.6; }
  50% { opacity:1; }
  100% { transform: translateY(-100vh) scale(1.2); opacity:0; }
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 105, 180, 0.7);
  bottom: 0;
  left: calc(15% * var(--i) + 10%);
  animation: floatIcon 12s linear infinite;
  animation-delay: calc(var(--i) * 2s);
}


@keyframes floatIcon {
  0% {
    transform: translateY(0) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translateY(-25vh) translateX(-30px) rotate(15deg);
  }
  50% {
    transform: translateY(-50vh) translateX(30px) rotate(-15deg);
  }
  70% {
    transform: translateY(-75vh) translateX(-20px) rotate(10deg);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
}


.logo {
  margin: 0 auto 1rem auto;
  max-width: 90px;
  height: auto;
  animation: bounce 3s ease-in-out infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.05); }
}

.swal-popup {
  background: #fff; 
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 2rem;
}

.swal-title {
  color: #A50064; 
  font-weight: 600;
  font-size: 1.4rem;
}


.swal-text {
  color: #3A3A3A;
  font-size: 1rem;
}


.swal-confirm {
  background: linear-gradient(45deg, #A50064, #FF7FA5) !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swal-confirm:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(165, 0, 100, 0.4);
}


.swal-cancel {
  background: #f5f5f5 !important;
  color: #A50064 !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 500;
}


.swal2-icon.swal2-success {
  border-color: #A50064 !important;      
  color: #A50064 !important;         
}


.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: #A50064 !important;
}


.swal2-icon.swal2-success .swal2-success-ring {
  border: 4px solid rgba(165, 0, 100, 0.3) !important;
}

.input-group {
  position: relative; /* necesario para posicionar el ojo */
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #A50064;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #FF7FA5;
}

