/* ==========================================================================
   ESCENA 1: PANTALLA DE PASSWORD POR FECHA (PLANETA TIERRA PIXEL ART)
   ========================================================================== */

.password-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
}

/* Planeta Tierra Pixel y Aura Atmosférica */
.pixel-earth-container {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.pixel-earth {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.65)) drop-shadow(0 0 4px rgba(34, 197, 94, 0.4));
}

.earth-atmosphere-glow {
  position: absolute;
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(37, 99, 235, 0.2) 50%, rgba(0, 0, 0, 0) 72%);
  border-radius: 50%;
  z-index: 1;
  animation: earthAuraPulse 4s infinite ease-in-out;
}

/* Título Pixel y Subtítulo */
.pixel-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.pixel-highlight {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(246, 216, 155, 0.4);
}

.password-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  max-width: 340px;
}

/* Formulario e Input de Fecha */
.password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.date-input-wrapper {
  width: 100%;
  max-width: 280px;
  position: relative;
}

.pixel-date-input {
  width: 100%;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--text-main);
  background: rgba(9, 13, 22, 0.8);
  border: 2px solid rgba(246, 216, 155, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.pixel-date-input:focus {
  border-color: var(--accent-gold);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 16px rgba(246, 216, 155, 0.35);
  transform: scale(1.02);
}

/* Soporte de icono nativo del datepicker con filtro a color claro */
.pixel-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(1) saturate(3) hue-rotate(5deg);
  cursor: pointer;
  padding: 4px;
}

/* Feedback de Error / Éxito */
.password-feedback {
  min-height: 2.2rem;
  margin-top: 1.2rem;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: opacity var(--transition-fast);
}

.feedback-error {
  color: #ff8585;
  text-shadow: 0 0 8px rgba(255, 133, 133, 0.4);
  animation: feedbackPop 0.35s ease-out;
}

.feedback-success {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(246, 216, 155, 0.6);
  animation: feedbackPop 0.35s ease-out;
}

/* Animación de Shake Suave y Emocional para Error */
.shake-animation {
  animation: softShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes softShake {
  10%, 90% { transform: translate3d(-3px, 0, 0) rotate(-0.5deg); }
  20%, 80% { transform: translate3d(4px, 0, 0) rotate(0.5deg); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0) rotate(-0.5deg); }
  40%, 60% { transform: translate3d(4px, 0, 0) rotate(0.5deg); }
}

@keyframes feedbackPop {
  0% { opacity: 0; transform: scale(0.9) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes earthAuraPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.18); }
}

.float-animation {
  animation: floatingEarth 4s ease-in-out infinite;
}

@keyframes floatingEarth {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
