@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;700&display=swap');

/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body centrado vertical y horizontalmente */
body {
  font-family: 'Lexend', sans-serif;
  background: #ffffff; 
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Contenedor global que agrupa logo y login box */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo (gaviota) */
.logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: visible;
  margin-bottom: 2.5rem;   /* Espacio entre el logo y el box */
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

/* Box negro del formulario */
.login-container {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  min-width: 320px;        /* Ajusta el ancho mínimo */
  display: flex;
  flex-direction: column;  /* Para que el formulario quede en columna */
  align-items: center;
}

/* Formulario */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-form input {
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
  background: #2c2c2c;
  color: #fff;
}

/* Botón de enviar */
button {
  background: #333;
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: 0.8rem;
  font-size: 1rem;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
}

button:hover {
  background: #555;
}

/* Enlace de '¿Olvidaste tu contraseña?' */
.forgot-password {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #aaaaaa;
  text-decoration: none;
}

.forgot-password:hover {
  color: #ccc;
  text-decoration: underline;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 400px) {
  .login-container {
    width: 100%;
    padding: 3rem;
    min-width: auto; /* Para que no fuerce un ancho fijo en pantallas muy pequeñas */
  }
}

/* Agregar animación de brillo giratorio en el círculo del logo */
.logo-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 94%;
  height: 94%;
  border: 3px solid transparent;
  border-top: 3px solid #a60808;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px #ffb3b3;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}