/* =========================
   RESET BÁSICO (IMPORTANTE)
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   FONDO
========================= */
.fondo-login {
  min-height: 100vh;
  background-image: url("./imagen/produccion.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
}

/* Overlay oscuro */
.fondo-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

/* =========================
   CAJA LOGIN
========================= */
.login-box {
  position: relative;
  z-index: 2;

  width: 340px;                /* mismo tamaño que PHP */
  padding: 26px;

  background-color: #ffffff;
  border-radius: 14px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  overflow: hidden;          
}

/* =========================
   TÍTULO
========================= */
.titulo-login {
  text-align: center;
  margin-bottom: 24px;

  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;

  color: #103E67;   /* azul corporativo Gestamp (mismo que ruta.css --gst-navy) */
}

/* =========================
   CAMPOS
========================= */
.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  margin-bottom: 6px;

  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* =========================
   INPUTS (CORREGIDOS)
========================= */
.campo input {
  display: block;
  width: 100%;

  padding: 14px 15px;
  font-size: 15px;

  border-radius: 8px;
  border: 1px solid #d1d5db;

  background-color: #ffffff;
  color: #333;

  box-sizing: border-box;     
}

/* Placeholder */
.campo input::placeholder {
  color: #9ca3af;
}

/* Focus LIMPIO (NO se sale) */
.campo input:focus {
  outline: none;
  border-color: #155084;   /* mismo azul de marca que --gst-azul en ruta.css */
}

/* =========================
   BOTÓN
========================= */
button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;

  background-color: #155084;   /* azul de marca Gestamp (--gst-azul en ruta.css) */
  color: #ffffff;

  border: none;
  border-radius: 10px;

  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #1D70B9;   /* --gst-azul-medio */
}

/* =========================
   ERROR
========================= */
.alerta-error {
  margin-bottom: 15px;
  padding: 10px;

  background-color: #f8d7da;
  color: #842029;

  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

