body { background: var(--surface); }
.login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
.lado { background: var(--noche); color: var(--noche-texto); padding: 40px 56px; display: flex; flex-direction: column; gap: 40px; }
.lado .marca { padding: 0; font-size: 20px; }
.lado .marca svg { width: 30px; height: 30px; }
.lado h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; color: #fff; max-width: 15ch; margin-top: auto; }
.lado > p { color: var(--noche-gris); font-size: 16px; line-height: 1.55; max-width: 44ch; margin-top: -24px; }
/* fragmento real de la app: el recorrido del mes */
.muestra { background: var(--noche-2); border: 1px solid var(--noche-borde); border-radius: 12px; padding: 20px; max-width: 460px; margin-bottom: auto; }
.muestra header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.muestra header b { color: #fff; font-weight: 600; }
.muestra header span { color: var(--noche-gris); font-size: 12px; }
.m-paso { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; align-items: center; gap: 12px; height: 34px; font-size: 13px; color: var(--noche-gris); }
.m-paso .b { height: 20px; border-radius: 5px; background: var(--noche-3); position: relative; overflow: hidden; }
.m-paso .b i { position: absolute; inset: 0 auto 0 0; background: #2a4677; border-radius: 5px; }
.m-paso:last-child .b i { background: #2f6fea; }
.m-paso b { color: #fff; text-align: right; font-weight: 600; }
.formulario { display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; }
.caja { width: 100%; max-width: 380px; margin: 0 auto; }
.caja h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.caja .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.campos { display: grid; gap: 16px; margin-top: 32px; }
.campos label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.campos .input { height: 44px; width: 100%; font-size: 15px; }
.clave { position: relative; }
.clave button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; background: none; color: var(--accent-ink); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 6px; }
.clave button:hover { background: var(--raised); }
.linea { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.linea label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.linea a { color: var(--accent-ink); font-weight: 600; }
.linea a:hover { text-decoration: underline; }
.entrar { height: 46px; width: 100%; font-size: 15px; margin-top: 8px; }
.ayuda { margin-top: 28px; color: var(--muted); font-size: 13px; text-align: center; }
.ayuda a { color: var(--accent-ink); font-weight: 600; }
.firma { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 12px; }
.firma a:hover { color: var(--text); }
.firma b { color: var(--text); font-weight: 600; }
.formulario > .caja { margin-top: auto; }
@media (max-width: 960px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .lado { padding: 24px 20px 28px; gap: 20px; }
  .lado h2 { font-size: 28px; margin-top: 4px; }
  .lado > p, .muestra { display: none; }
  .formulario { padding: 32px 20px 24px; justify-content: flex-start; }
  .formulario > .caja { margin-top: 0; }
  .firma { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* estados y piezas de las pantallas de acceso */
.fijo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-control); background: var(--raised); margin-top: 28px; }
.fijo b { display: block; font-weight: 600; }
.fijo span { font-size: 13px; color: var(--muted); }
.reglas { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.reglas li { display: flex; align-items: center; gap: 8px; }
.reglas li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--control); flex: none; }
.reglas li.ok { color: var(--pill-positive-ink); }
.reglas li.ok::before { border: 0; background: var(--positive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7.2 2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fuerza { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; margin-top: 2px; }
.fuerza i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--negative); transition: width var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.terminos { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 18px; }
.terminos input { accent-color: var(--accent); margin: 2px 0 0; }
.terminos a { color: var(--accent-ink); font-weight: 600; }
.aviso-estado { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px; }
.aviso-estado svg { width: 26px; height: 26px; }
.aviso-estado.ok { background: var(--pill-positive-bg); color: var(--positive); }
.aviso-estado.warn { background: var(--pill-warning-bg); color: var(--warning); }
.aviso-estado.acc { background: var(--accent-soft); color: var(--accent); }
.estado[hidden] { display: none; }
.volver { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.volver:hover { text-decoration: underline; }
.nota { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 19px; }
.nota b { color: var(--text); font-weight: 600; }
.pasos-lado { display: grid; gap: 14px; max-width: 420px; margin-bottom: auto; }
.pasos-lado li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--noche-gris); font-size: 14px; line-height: 20px; }
.pasos-lado b { display: block; color: #fff; font-weight: 600; }
.pasos-lado .n { width: 28px; height: 28px; border-radius: 50%; background: var(--noche-3); color: var(--noche-acento); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
@media (max-width: 960px) { .pasos-lado { display: none; } }

.error-form { margin: 0; padding: 10px 12px; border-radius: 8px; background: #ffedea; color: #831c1e; font-size: 13px; font-weight: 500; }
