/* ===================
   = LOGIN =
   =================== */
#acceso {
  --dsh-acento: #158ac4;
  --acceso-fondo: #e8ebf2;
  --acceso-texto: #1f2937;
  --acceso-gris: #4b5563;
  --acceso-borde: #c9ced8;

  position: fixed;
  inset: 0;
  z-index: 10000000;
  display: flex;
  flex-direction: column;
  background-color: var(--acceso-fondo);
  font-family: Helvetica, Arial, sans-serif;
  overflow: auto;
}

/* Encabezado: logo SIAAP | INICIAR SESIÓN */
#acceso .acceso-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px;
}
/* logo.png trae margen blanco propio; se compensa para pegarlo a la esquina */
#acceso .acceso-header img {
  height: 48px;
  width: auto;
  margin: -7px -5px -7px -8px;
}
#acceso .acceso-sep {
  width: 2px;
  height: 34px;
  background-color: var(--acceso-texto);
}
#acceso .acceso-header h1 {
  margin: 0;
  padding: 0;
  color: var(--acceso-texto);
  font-size: 22px;
  line-height: 1;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Tarjeta central */
#acceso .acceso-centro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 80px;
}
#acceso .acceso-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin: 0;
  padding: 36px 48px 28px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(31, 41, 55, .18);
}
#acceso .acceso-logo {
  max-width: 220px;
  max-height: 70px;
  width: auto;
  height: auto;
  margin-bottom: 32px;
}
#acceso .acceso-form h3 {
  margin: 0 0 34px;
  padding: 0;
  color: var(--acceso-gris);
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  text-align: center;
  border: none;
  background: none;
}
#acceso .alerta {
  width: 100%;
  margin: 0 0 8px;
  text-align: center;
}
#acceso .alerta:empty { display: none; }

#acceso .acceso-form input {
  display: block;
  width: 100%;
  height: 34px;
  margin: 0 0 14px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--acceso-borde);
  border-radius: 4px;
  background-color: #fff;
  color: var(--acceso-texto);
  font-size: 15px;
}
#acceso .acceso-form input:focus {
  outline: none;
  border-color: var(--dsh-acento);
  box-shadow: 0 0 0 3px rgba(21, 138, 196, .15);
}

#acceso .acceso-form button {
  margin-top: 4px;
  padding: 11px 14px;
  border: none;
  border-radius: 3px;
  background-color: var(--dsh-acento);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s;
}
#acceso .acceso-form button:hover { filter: brightness(.9); }

/* Estado "Iniciando sesión..." */
#acceso .acceso-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#acceso .acceso-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: acceso-giro .7s linear infinite;
}
#acceso .acceso-form.cargando .acceso-spinner { display: inline-block; }
#acceso .acceso-form.cargando button {
  cursor: wait;
  filter: none;
  opacity: .85;
}
#acceso .acceso-form.cargando input {
  background-color: #f3f4f6;
  color: var(--acceso-gris);
}
@keyframes acceso-giro {
  to { transform: rotate(360deg); }
}

@media only screen and (max-width: 500px) {
  #acceso .acceso-header img { height: 38px; margin: -5px -4px -5px -6px; }
  #acceso .acceso-sep { height: 26px; }
  #acceso .acceso-header h1 { font-size: 17px; }
  #acceso .acceso-form { padding: 28px 20px 22px; }}
