/* ═══════════════════════════════════════════════
   MAJO PINK · Pantalla de login
   ═══════════════════════════════════════════════ */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffe9f2 0%, #fff5f9 50%, #ffe0ec 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
}

/* Burbujas decorativas */
.login-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}
.login-deco-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #ffb8d4, transparent 70%);
  top: -80px; left: -80px;
  animation: floatDeco 8s ease-in-out infinite;
}
.login-deco-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #ff7fb0, transparent 70%);
  bottom: -60px; right: -60px;
  animation: floatDeco 10s ease-in-out infinite reverse;
}
.login-deco-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #ffd6e7, transparent 70%);
  top: 40%; right: 15%;
  animation: floatDeco 12s ease-in-out infinite;
}
@keyframes floatDeco {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 44px 34px 34px;
  box-shadow:
    0 20px 50px rgba(232, 90, 146, 0.18),
    0 4px 12px rgba(232, 90, 146, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 184, 212, 0.5);
  animation: cardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
  margin-bottom: 28px;
}

/* Logo subido desde el admin */
.login-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 110px;
  max-height: 110px;
  width: auto;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(232, 90, 146, 0.25);
  animation: pulseEmoji 3s ease-in-out infinite;
}

/* Emoji por si no hay logo aún */
.login-emoji {
  display: inline-block;
  font-size: 2.6rem;
  margin-bottom: 8px;
  animation: pulseEmoji 3s ease-in-out infinite;
}
@keyframes pulseEmoji {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.login-header h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #e85a92, #ff7fb0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.login-header p {
  font-size: 0.85rem;
  color: #8b6a80;
}

.login-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
  animation: shakeError 0.4s ease;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #ffe0ec;
  border-radius: 14px;
  background: #fff5f9;
  font-family: inherit;
  font-size: 0.95rem;
  color: #5c2f4a;
  text-align: center;
  letter-spacing: 0.08em;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.login-field input:focus {
  outline: none;
  border-color: #ff7fb0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 127, 176, 0.15);
}
.login-field input::placeholder {
  color: #c7a8bb;
  letter-spacing: normal;
}

.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7fb0, #e85a92);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(232, 90, 146, 0.32);
  transition: transform .2s, box-shadow .2s;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 90, 146, 0.42);
}
.login-btn:active {
  transform: translateY(0);
}

.login-back {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.85rem;
  color: #e85a92;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s, transform .2s;
}
.login-back:hover {
  color: #c94b6e;
  transform: translateX(-3px);
}

.login-footer {
  margin-top: 26px;
  font-size: 0.78rem;
  color: #b58fa5;
  letter-spacing: 0.03em;
}

/* Móvil */
@media (max-width: 480px) {
  .login-card { padding: 34px 24px 26px; border-radius: 24px; }
  .login-header h1 { font-size: 1.4rem; }
  .login-logo { max-width: 90px; max-height: 90px; }
  .login-emoji { font-size: 2.2rem; }
}