/* ============================================================
   acceso.css — Pantallas de acceso del portal (19/11/2026)
   index.php, registro.php, recuperar.php, restablecer.php y admin_login.php.
   El logo a la izquierda y el formulario a la derecha (diseño aprobado por Pedro).
   Todo va con prefijo .en- para no chocar con las .lg-* viejas de estilos2.css.
   Usa los colores de :root de estilos2.css (se carga antes).
   ============================================================ */

.en-body { margin: 0; min-height: 100vh; display: flex; background: #fff; color: var(--tinta); }

/* La marca: el logo grande sobre el tono claro de la casa */
.en-marca { flex: 1 1 56%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 48px; background: var(--naranja-bg); }
.en-marca img { display: block; width: 100%; max-width: 520px; height: auto; }
.en-marca-nota { margin: 22px 0 0; font-size: 17px; font-weight: 600; color: var(--naranja-osc); }

.en-panel { flex: 0 0 44%; max-width: 620px; display: flex; flex-direction: column; padding: 48px 56px 28px; }
.en-centro { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 372px; margin: 0 auto; }

.en-titulo { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: var(--negro); margin: 0 0 6px; }
.en-sub { margin: 0 0 28px; font-size: 15.5px; line-height: 1.5; color: #6f665b; }

/* Campos */
.en-campo { margin-bottom: 18px; }
.en-campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.en-input { width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit; color: var(--tinta);
  background: #fff; border: 1.5px solid #cfc4b4; border-radius: 6px; }
.en-input:hover { border-color: #a89b88; }
.en-input:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 3px rgba(204,99,13,.22); }
.en-ayuda { display: block; margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: #6f665b; }

/* Código de 6 números (registro y 2FA) */
.en-codigo { font-size: 24px; font-weight: 600; letter-spacing: .32em; font-variant-numeric: tabular-nums; }

/* Contraseña con «Mostrar» */
.en-clave { position: relative; }
.en-clave .en-input { padding-right: 92px; }
.en-ver { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 12px; border: 0; border-radius: 4px; background: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--naranja-osc); cursor: pointer; }
.en-ver:hover { background: var(--naranja-bg); }

/* Fila de «mantener sesión» + «olvidé la clave» */
.en-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 2px 0 24px; font-size: 14.5px; }
.en-recordar { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.en-recordar input { width: 17px; height: 17px; margin: 0; accent-color: var(--naranja); }

.en-fila a, .en-enlace a { color: var(--naranja-osc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.en-fila a:hover, .en-enlace a:hover { text-decoration-thickness: 2px; }

/* Botón principal */
.en-entrar { width: 100%; margin-top: 6px; padding: 14px 18px; border: 0; border-radius: 6px; background: var(--naranja); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.en-entrar:hover { background: var(--naranja-osc); }
.en-fila + .en-entrar { margin-top: 0; }

/* Renglones de enlaces bajo el formulario */
.en-enlace { margin: 26px 0 0; font-size: 15px; color: #6f665b; }
.en-enlace + .en-enlace { margin-top: 12px; }

.en-pie { margin: 28px auto 0; width: 100%; max-width: 372px; font-size: 12.5px; color: #8a8074; }

.en-ver:focus-visible, .en-entrar:focus-visible, .en-fila a:focus-visible, .en-enlace a:focus-visible, .en-recordar input:focus-visible {
  outline: 3px solid rgba(204,99,13,.5); outline-offset: 2px; }

/* Avisos */
.en-alerta { border-radius: 6px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; margin-bottom: 20px; }
.en-alerta-error { background: var(--rojo-bg); color: var(--rojo); }
.en-alerta-ok { background: var(--verde-bg); color: var(--verde); }
.en-alerta-info { background: var(--ambar-bg); color: var(--ambar-tx); }

/* Tablet y celular: el logo pasa a una franja arriba */
@media (max-width: 900px) {
  .en-body { flex-direction: column; }
  .en-marca { flex: none; min-height: 0; padding: 22px; }
  .en-marca img { width: auto; max-width: 62%; max-height: 104px; }
  .en-marca-nota { margin-top: 10px; font-size: 15px; }
  .en-panel { flex: 1; max-width: none; padding: 28px 22px 22px; }
  .en-centro { justify-content: flex-start; }
  .en-titulo { font-size: 26px; }
}
