/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  background-color: #22221c;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
}

/* Loader */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #22221c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-logo {
  width: 450px;
  opacity: 0;
}

/* Logo final */
.fixed-logo {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  z-index: 10;
  opacity: 0;
}

/* Contenedor del login */
.login-container {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 350px;
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 0;
}

/* Título */
.login-container h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #22221c;
}

/* Inputs y etiquetas */
.login-container label {
  display: block;
  margin: 10px 0 5px;
  text-align: left;
  font-weight: 500;
  color: #333;
}

.login-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

/* Botón */
.login-container button {
  padding: 12px 25px;
  background-color: #f57d26;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover {
  background-color: #a77f0c;
}

/* Mensaje de error */
.login-container p {
  margin-bottom: 15px;
  color: red;
  font-weight: 500;
}

.btn-volver {
  display: inline-block;
  margin-top: 1rem;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0; /* Empieza invisible */
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #555;
}

@media (max-width: 768px) {
  .loader-logo {
    width: 300px;
  }

  .fixed-logo {
    width: 180px;
  }

  .login-container {
    max-width: 300px;
    padding: 18px;
  }

  .login-container h2 {
    font-size: 24px;
  }

  .login-container input {
    font-size: 15px;
    padding: 10px;
  }

  .login-container button {
    font-size: 15px;
    padding: 10px 20px;
  }
}
