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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 25%, #f48fb1 50%, #f06292 75%, #ec407a 100%);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

/* ============ CORAZONES FLOTANTES ============ */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -50px;
  left: var(--left);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.3);
  animation: floatUp 8s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* ============ LOGIN CONTAINER ============ */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow:
    0 20px 60px rgba(233, 30, 99, 0.2),
    0 0 40px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: cardAppear 0.8s ease-out;
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============ HEADER ============ */
.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.love-icon {
  font-size: 56px;
  color: #e91e63;
  animation: heartBeat 1.5s ease-in-out infinite;
  margin-bottom: 12px;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.login-header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: #c2185b;
  margin-bottom: 8px;
  font-weight: 700;
}

.subtitle {
  color: #e91e63;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ============ FORM ============ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  color: #ad1457;
  font-weight: 500;
  padding-left: 4px;
}

.input-icon {
  color: #e91e63;
}

.input-group input {
  padding: 14px 18px;
  border: 2px solid #f8bbd0;
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: #880e4f;
  background: #fce4ec;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input::placeholder {
  color: #f48fb1;
  font-weight: 300;
}

.input-group input:focus {
  border-color: #e91e63;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

/* ============ BUTTON ============ */
.btn-login {
  margin-top: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #ec407a, #e91e63, #c2185b);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ============ ERROR ============ */
.error-message {
  text-align: center;
  color: #c62828;
  background: #ffebee;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  border: 1px solid #ef9a9a;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ============ FOOTER ============ */
.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #fce4ec;
}

.login-footer p {
  font-size: 0.8rem;
  color: #f48fb1;
  font-weight: 300;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px;
  }

  .login-header h1 {
    font-size: 1.8rem;
  }

  .love-icon {
    font-size: 44px;
  }
}
