/* public/css/login.css */

/* Contenedor del login */
.login-background {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f5f7fb; /* respaldo */
}

/* Fondo en capa separada (evita repaints y lag al teclear en Chrome/Edge) */
.login-background::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;

  /* Usa webp; fallback png solo si no soporta */
  background-image: image-set(
    url("../img/waves-bg.webp") type("image/webp"),
    url("../img/waves-bg.png")  type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  /* fuerza composición GPU */
  transform: translateZ(0);
  will-change: transform;
}

/* Tipografía */
body, .login-card, .login-header, label, input, button {
  font-family: Arial, sans-serif;
}

/* Card (encima del fondo) */
.login-card {
  position: relative;
  z-index: 1;

  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); /* un poco más liviano */
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  text-align: center;

  /* capa separada para que el input no “jale” repaints del fondo */
  transform: translateZ(0);
  will-change: transform;
}

/* Cabecera */
.login-header img {
  max-width: 120px;
  margin-bottom: 1rem;
}
.login-header h2 {
  margin: 0 0 1.5rem;
  color: #00457C;
  font-size: 1.5rem;
}

/* Formulario */
.login-card label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
}
.login-card input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #CCC;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* Botón */
.btn-login {
  width: 100%;
  padding: 0.75rem;
  background-color: #00457C;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}
.btn-login:hover {
  background-color: #003366;
}

/* Enlace “¿Olvidaste tu contraseña?” */
.forgot a {
  display: inline-block;
  margin-top: 1rem;
  color: #00457C;
  font-size: 0.875rem;
  text-decoration: none;
}
.forgot a:hover {
  text-decoration: underline;
}