/* Pantalla de entrada de la plataforma (Transit-Bus) */
:root { --anil: #1a1170; --anil-2: #2b3fb5; --turquesa: #2596be; --texto: #10123a; --suave: #5b5f86; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: #f4f5fb; font-size: 17px; }
.entrar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 100vh; }

.lado-foto {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  background:
    linear-gradient(160deg, rgba(26, 17, 112, .25) 0%, rgba(26, 17, 112, .55) 55%, rgba(10, 6, 54, .92) 100%),
    url("/static/marca/entrar-fondo.webp") center / cover no-repeat;
}
.foto-texto { padding: 48px 56px; display: grid; gap: 6px; justify-items: start; }
.sello { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); margin-bottom: 14px; }
.lema { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 900; letter-spacing: -.02em; margin: 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.foto-texto .sub { margin: 0; opacity: .9; font-weight: 600; }

.lado-form { display: grid; place-items: center; padding: 32px 24px; background: #fff; }
.caja { width: 100%; max-width: 400px; min-width: 0; display: grid; gap: 14px; }
.caja > *, form > *, label > * { min-width: 0; }
input { width: 100%; }
.caja .logo { width: 240px; height: auto; margin: 0 0 4px -6px; }
.caja h1 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--suave); letter-spacing: .06em; text-transform: uppercase; }
form { display: grid; gap: 14px; }
.ayuda { margin: 0; color: var(--suave); line-height: 1.45; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
input {
  font: inherit; font-size: 1.05rem; padding: 14px 14px; border-radius: 14px; border: 1.5px solid #d6d8ea; background: #fafbff; color: var(--texto);
  transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--anil-2); box-shadow: 0 0 0 4px rgba(43, 63, 181, .14); background: #fff; }
#codigo { font-size: 1.9rem; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.con-ojo { position: relative; display: block; }
.con-ojo input { width: 100%; padding-right: 52px; }
.ojo { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.2rem; cursor: pointer; padding: 6px; opacity: .6; }
.boton-entrar {
  display: block; text-align: center; text-decoration: none; font: inherit; font-weight: 800; font-size: 1.1rem; color: #fff; border: 0; cursor: pointer;
  padding: 15px; border-radius: 14px; background: linear-gradient(135deg, var(--anil-2), var(--anil));
  box-shadow: 0 10px 26px rgba(26, 17, 112, .3); transition: transform .12s, box-shadow .12s;
}
.boton-entrar:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(26, 17, 112, .38); }
.boton-entrar:disabled { opacity: .6; cursor: wait; transform: none; }
.olvido, .volver { justify-self: center; color: var(--anil-2); font-weight: 600; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.olvido:hover, .volver:hover { text-decoration: underline; }
.mensaje { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff0f1; color: #a3122a; font-weight: 600; border: 1px solid #ffd0d6; }
footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid #ececf5; display: flex; gap: 14px; align-items: center; color: #8b8fae; font-size: .82rem; }
footer img { height: 44px; width: auto; }

@media (max-width: 860px) {
  .entrar { grid-template-columns: 1fr; grid-template-rows: 230px auto; }
  .foto-texto { padding: 22px 22px; }
  .sello { width: 74px; height: 74px; margin-bottom: 6px; }
  .lema { font-size: 1.7rem; }
  .lado-form { align-items: start; }
}
