@font-face {
  font-family: Poppins-Regular;
  src: url('fuentes/poppins/Poppins-Regular.ttf');
}

@font-face {
  font-family: Poppins-Medium;
  src: url('fuentes/poppins/Poppins-Medium.ttf');
}

@font-face {
  font-family: Poppins-Bold;
  src: url('fuentes/poppins/Poppins-Bold.ttf');
}

@font-face {
  font-family: Poppins-SemiBold;
  src: url('fuentes/poppins/Poppins-SemiBold.ttf');
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Poppins-Regular, sans-serif;
  overflow-x: hidden;
}

input {
  outline: none;
  border: none;
}

button {
  outline: none !important;
  border: none;
  background: transparent;
}

button:hover {
  cursor: pointer;
}

/* =============================================
   FONDO ANIMADO — PALETA PASTEL PASTELERÍA
   ============================================= */

.container-login {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 15px;
  /* Rosa → Durazno → Lavanda → Menta → Rosa */
  background: linear-gradient(135deg,
    #f9c6d0,   /* rosa pastel */
    #ffd6b0,   /* durazno */
    #e8c7f0,   /* lavanda */
    #b8ead7,   /* menta */
    #fce4f0,   /* rosa claro */
    #f9c6d0    /* rosa pastel (cierre suave) */
  );
  background-size: 400% 400%;
  animation: bgShift 14s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes bgShift {
  0%   { background-position:   0% 50%; }
  25%  { background-position:  50%  0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position:  50% 100%; }
  100% { background-position:   0% 50%; }
}

/* =============================================
   ELEMENTOS DECORATIVOS FLOTANTES
   ============================================= */

.food-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.80;
  filter: drop-shadow(0 3px 10px rgba(180, 100, 130, 0.25));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes dance1 {
  0%   { transform: translateY(0px)   rotate(-8deg)  scale(1.00); }
  25%  { transform: translateY(-28px) rotate(10deg)  scale(1.06); }
  50%  { transform: translateY(-12px) rotate(-4deg)  scale(0.94); }
  75%  { transform: translateY(-38px) rotate(14deg)  scale(1.08); }
  100% { transform: translateY(0px)   rotate(-8deg)  scale(1.00); }
}

@keyframes dance2 {
  0%   { transform: translateY(0px)   translateX(0px)   rotate(5deg)   scale(1.00); }
  20%  { transform: translateY(-22px) translateX(12px)  rotate(-12deg) scale(1.07); }
  50%  { transform: translateY(-45px) translateX(-10px) rotate(16deg)  scale(0.92); }
  80%  { transform: translateY(-18px) translateX(14px)  rotate(-6deg)  scale(1.04); }
  100% { transform: translateY(0px)   translateX(0px)   rotate(5deg)   scale(1.00); }
}

@keyframes dance3 {
  0%   { transform: translateY(0px)   rotate(0deg)   scale(1.00); }
  33%  { transform: translateY(-32px) rotate(-20deg) scale(1.10); }
  66%  { transform: translateY(-10px) rotate(20deg)  scale(0.90); }
  100% { transform: translateY(0px)   rotate(0deg)   scale(1.00); }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px)   rotate(-6deg); }
  50%       { transform: translateY(-38px) rotate(8deg);  }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px)   scale(1.00) rotate(0deg);   }
  40%       { transform: translateY(-28px) scale(1.08) rotate(-14deg); }
  70%       { transform: translateY(-48px) scale(0.94) rotate(10deg);  }
}

@keyframes spinFloat {
  0%, 100% { transform: translateY(0px)   rotate(0deg);   }
  50%       { transform: translateY(-40px) rotate(360deg); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-5deg) scale(1.00);                           }
  30%       { transform: rotate(10deg) scale(1.05) translateY(-20px);        }
  60%       { transform: rotate(-8deg) scale(0.96) translateY(-35px);        }
}

/* =============================================
   TARJETA DE LOGIN — glassmorphism pastel
   ============================================= */

.wrap-login {
  width: 420px;
  /* Blanco translúcido cálido — deja ver el fondo animado */
  background: rgba(255, 248, 245, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.70);
  border-radius: 28px;
  padding: 50px 45px 45px;
  box-shadow:
    0 25px 60px rgba(210, 130, 160, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.50) inset;
  position: relative;
  z-index: 10;
  animation: cardAppear 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(50px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0px)  scale(1.00); }
}

/* =============================================
   FORMULARIO
   ============================================= */

.login-form {
  width: 100%;
}

.login-form-title {
  display: block;
  font-family: Poppins-Bold;
  font-size: 38px;
  /* Rosa frambuesa oscuro — legible sobre fondo claro */
  color: #7a3550;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(210, 130, 160, 0.25);
}

.login-subtitle {
  display: block;
  font-family: Poppins-Regular;
  font-size: 12px;
  color: #b07090;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.logo-container img {
  width: 200px;
  filter: drop-shadow(0 4px 14px rgba(210, 130, 160, 0.35)) brightness(1.03);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.04) rotate(-1deg);
}

/* =============================================
   CAMPOS DE ENTRADA
   ============================================= */

.wrap-input100 {
  width: 100%;
  position: relative;
  margin-bottom: 22px;
}

.input100 {
  font-family: Poppins-Regular;
  font-size: 15px;
  color: #5a2840;
  display: block;
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.60);
  border: 1.5px solid rgba(200, 140, 170, 0.45);
  border-radius: 14px;
  padding: 0 18px;
  transition: all 0.35s ease;
}

.input100::placeholder {
  color: #c096ab;
  font-family: Poppins-Regular;
}

.input100:focus {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e599b8;
  box-shadow: 0 0 0 4px rgba(229, 153, 184, 0.18);
}

.focus-efecto {
  display: none;
}

/* =============================================
   BOTÓN CONECTAR — degradé pastel
   ============================================= */

.container-login-form-btn {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.wrap-login-form-btn {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
}

.login-form-bgbtn {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  /* Rosa → Durazno → Lila → Menta → Rosa  (pastel) */
  background: linear-gradient(90deg,
    #f9a8c9,   /* rosa */
    #ffc9a0,   /* durazno */
    #d4b0e8,   /* lila */
    #a8dfc9,   /* menta */
    #fce0ed,   /* rosa claro */
    #f9a8c9    /* cierre */
  );
  background-size: 300% 100%;
  top: 0;
  left: 0;
  animation: btnGradient 5s ease infinite;
}

@keyframes btnGradient {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

.login-form-btn {
  font-family: Poppins-Medium;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  height: 52px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 5px rgba(150, 60, 100, 0.45);
  transition: letter-spacing 0.3s ease, transform 0.2s ease;
}

.wrap-login-form-btn:hover .login-form-btn {
  letter-spacing: 5px;
}

.wrap-login-form-btn:active .login-form-btn {
  transform: scale(0.97);
}

/* =============================================
   RESPONSIVE MÓVIL
   ============================================= */

@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
  }

  .container-login {
    padding: 20px 15px;
    align-items: center;
  }

  .wrap-login {
    width: 100%;
    max-width: 100%;
    padding: 36px 22px 30px;
    border-radius: 22px;
    /*
      En móvil el backdrop-filter puede fallar en navegadores viejos.
      Usamos blanco translúcido pastel como fallback — deja ver el
      fondo animado y cambia de color junto con él.
    */
    background: rgba(255, 242, 248, 0.72);
  }

  .login-form-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .login-subtitle {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .logo-container {
    margin-bottom: 20px;
  }

  .logo-container img {
    width: 160px;
  }

  .input100 {
    height: 48px;
    font-size: 16px; /* evita zoom automático en iOS */
    border-radius: 12px;
  }

  .wrap-input100 {
    margin-bottom: 18px;
  }

  .login-form-btn {
    height: 48px;
    font-size: 15px;
    letter-spacing: 2px;
  }

  /* En móvil: mostrar SOLO los 3 primeros (helado, torta, queque arriba) */
  .food-item:nth-child(n+4) {
    display: none;
  }

  /* Los 3 visibles: tamaño adecuado para móvil y bien visibles */
  .food-item:nth-child(1),
  .food-item:nth-child(2),
  .food-item:nth-child(3) {
    font-size: 2.8rem !important;
    opacity: 0.85;
  }
}

@media (max-width: 400px) {
  .wrap-login {
    padding: 30px 16px 26px;
  }

  .login-form-title {
    font-size: 24px;
  }

  .food-item:nth-child(1),
  .food-item:nth-child(2),
  .food-item:nth-child(3) {
    font-size: 2.4rem !important;
  }
}
