@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400&display=swap');

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

:root {
  --sky:       #a8c8f0;
  --blue:      #4a90d9;
  --deep-blue: #1e4f8a;
  --midnight:  #0d1f3c;
  --silver:    #c8d8f0;
  --text-dark: #0d1f3c;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a3a6e 0%, #0f2550 40%, #0a1a38 100%);
  font-family: 'Lato', sans-serif;
  overflow: hidden;
}

/* Pétalos / partículas flotantes */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.petal {
  position: absolute;
  top: -40px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--silver) 0%, transparent 80%);
  opacity: 0.6;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Contenedor central */
.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
}

.lock-icon {
  font-size: 3.5rem;
  animation: pulse 2.5s ease-in-out infinite;
  display: block;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 16px rgba(168,200,240,0.7));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(168,200,240,0.5);
}

.hint {
  font-size: 0.92rem;
  color: var(--sky);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Dots */
.dots-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  cursor: text;
}

.dots {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(168,200,240,0.35);
  border-radius: 50px;
  padding: 14px 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(30,79,138,0.4);
}

.dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(168,200,240,0.15);
  border: 1.5px solid rgba(168,200,240,0.5);
  transition: background 0.2s, transform 0.15s;
  display: block;
}

.dots span.filled {
  background: linear-gradient(135deg, var(--sky), var(--blue));
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(74,144,217,0.7);
}

/* Input invisible */
#secret {
  position: fixed;
  opacity: 0;
  width: 1px; height: 1px;
  border: none; outline: none;
  pointer-events: none;
  top: 50%; left: 50%;
}

/* Error */
.error-msg {
  color: var(--sky);
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.4s;
  margin-top: 0.5rem;
  min-height: 1.4em;
}
.error-msg.visible { opacity: 1; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

body.unlocking { animation: fadeOut 0.8s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
