/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: url('https://i.pinimg.com/originals/41/dc/18/41dc18d324f78af26bb5e1aa3455a263.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #4a004a; /* Color base de texto oscuro para buena visibilidad */
}

/* Encabezado */
header {
  background: rgba(255, 182, 193, 0.4); /* Rosa pastel translúcido */
  color: #52004f;
  padding: 15px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

/* Contenido principal */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Caja de login (Glass) */
.formulario {
  width: 380px;
  background: rgba(255, 240, 245, 0.7); /* Fondo rosa claro translúcido */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
  backdrop-filter: blur(12px);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.formulario h1 {
  color: #8a0f75;
  font-size: 26px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(255, 179, 217, 0.8);
}

/* Campos */
.username {
  position: relative;
  margin: 30px 0;
}

.username input {
  width: 100%;
  padding: 10px 5px;
  height: 40px;
  font-size: 16px;
  border: none;
  background: none;
  outline: none;
  color: #3b003b;
  border-bottom: 2px solid #cc66b5; /* borde en el input, no en el contenedor */
  position: relative;
  z-index: 1;
}

/* Efecto brillo en el input */
.username input::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffb6e1, #e864c4, #ffc0cb, transparent);
  z-index: 2;
  pointer-events: none;
}

/* Para que el brillo se anime cuando se enfoque */
.username input:focus::after {
  animation: shine 1.5s linear infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* Botón principal */
.btn {
  width: 100%;
  height: 45px;
  background: linear-gradient(90deg, #ff94c2, #f77fff);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: linear-gradient(90deg, #f85cd6, #ff9de6);
  box-shadow: 0 0 15px #d14cd1, 0 0 30px #ff8ee0;
}

/* Enlaces extras */
.extra-options {
  margin-top: 20px;
  font-size: 14px;
}

.extra-options a {
  color: #9e027f;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

.extra-options a:hover {
  text-shadow: 0 0 8px #fff;
  color: #ff52d8;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.7);
  color: #ffb6d9;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

/* Animación entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔹 Barra de navegación */
.navbar {
  width: 100%;
  background: rgba(255, 210, 230, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.navbar .logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #52004f;
  text-shadow: 0 0 10px rgba(255, 150, 220, 0.8);
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 25px;
}

.navbar ul li a {
  color: #4b0045;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar ul li a:hover {
  color: #ff73d2;
  text-shadow: 0 0 8px #ffc2f5;
}

/* Evitar que el contenido quede debajo de la barra */
main {
  margin-top: 80px;
}
/* Estilo para las estrellas */
.star {
    position: absolute; /* Es crucial para que sigan al mouse */
    color: #ffd700; /* Color amarillo/dorado para la estrella */
    font-size: 20px; /* Tamaño inicial de la estrella */
    pointer-events: none; /* Muy importante: permite hacer clic a través de la estrella */
    opacity: 1;
    transition: all 0.5s ease-out; /* Transición para la animación de desvanecimiento */
    transform: scale(1);
    animation: fadeOut 0.5s forwards; /* Aplica la animación */
    z-index: 9999; /* Asegura que siempre esté por encima de todo */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, -50px) scale(0.2); /* Sube ligeramente y se encoge */
    }
}