/* Login corporativo · 3 diseños (centrado, lateral, minimal). Sobrio: un color institucional,
   formulario limpio, sin efectos. Usa las variables del tema (temas.css). Siempre una pantalla, sin scroll. */

html:has(body.lc), html:has(body.ll), html:has(body.lm) { height: 100%; }
body.lc, body.ll, body.lm { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; font-family: var(--sans); color: var(--texto); -webkit-font-smoothing: antialiased; }

/* ---------- Marca ---------- */
.marca-corp { display: flex; align-items: center; gap: 12px; }
.marca-corp img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.marca-corp b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--texto); line-height: 1.2; }
.marca-corp span { font-size: 12.5px; color: var(--suave); }
.marca-corp--blanca b { color: #fff; }
.marca-corp--blanca span { color: rgba(255,255,255,.7); }

/* ---------- Formulario común ---------- */
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--texto); }
.f-sub { margin: 6px 0 24px; font-size: 14.5px; color: var(--suave); }
.f-form { display: grid; gap: 16px; }
.f-campo label, .f-campo__fila label { display: block; font-size: 13.5px; font-weight: 600; color: var(--texto-2); margin-bottom: 6px; }
.f-campo__fila { display: flex; justify-content: space-between; align-items: baseline; }
.f-link { font-size: 13px; font-weight: 600; color: var(--acento-600); cursor: help; }
.f-campo input[type=text], .f-campo input[type=password] {
  width: 100%; height: 46px; padding: 0 14px; font: 500 15px var(--sans); color: var(--texto);
  background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.05);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.f-campo input::placeholder { color: #98a2b3; }
.f-campo input:focus { border-color: var(--tinta); box-shadow: 0 0 0 4px rgba(var(--tinta-rgb), .12); }
.f-clave { position: relative; }
.f-clave input { padding-right: 46px !important; }
.f-ojo { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 6px; background: none; color: #98a2b3; cursor: pointer; display: grid; place-items: center; }
.f-ojo:hover { color: var(--texto); background: #f2f4f7; }
.f-ojo svg { width: 18px; height: 18px; }
.f-mayus { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--alerta); }
.f-mayus.visible { display: block; }
.f-recordar { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texto-2); cursor: pointer; }
.f-recordar input { width: 16px; height: 16px; accent-color: var(--tinta); }
.f-boton {
  height: 46px; border: 0; border-radius: 8px; cursor: pointer; margin-top: 4px;
  background: var(--tinta); color: #fff; font: 600 15px var(--sans);
  box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: background .15s;
}
.f-boton:hover { background: var(--tinta-2); }
.f-boton:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(var(--tinta-rgb), .2); }
.f-boton[disabled] { opacity: .8; cursor: progress; }
.f-error { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 16px; border-radius: 8px; background: var(--peligro-bg); border: 1px solid #f9cfca; color: var(--peligro); font-size: 13.5px; font-weight: 500; }
.f-error svg { width: 16px; height: 16px; flex: none; }

/* ============ 1. CENTRADO SOBRE FOTOGRAFÍA (banca / portales institucionales) ============ */
body.lc { display: grid; grid-template-rows: auto 1fr auto; background: var(--tinta); position: relative; }
.lc__foto { position: fixed; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; }
.lc__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tinta-rgb), .78) 0%, rgba(var(--tinta-rgb), .86) 100%); }
.lc__top { display: flex; justify-content: space-between; align-items: center; padding: clamp(16px, 3vh, 26px) clamp(20px, 4vw, 48px); }
.lc__top a { color: rgba(255,255,255,.8); font-size: 13.5px; font-weight: 600; }
.lc__top a:hover { color: #fff; }
.lc__centro { display: grid; place-items: center; padding: 0 20px; min-height: 0; }
.lc__tarjeta { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: clamp(24px, 4.5vh, 40px) 36px; box-shadow: 0 24px 48px -12px rgba(0,0,0,.35); text-align: left; }
.lc__escudo { display: block; width: clamp(48px, 7vh, 60px); height: clamp(48px, 7vh, 60px); border-radius: 10px; margin-bottom: clamp(14px, 2.4vh, 22px); }
.lc__pie { display: flex; justify-content: space-between; padding: clamp(14px, 2.4vh, 22px) clamp(20px, 4vw, 48px); font-size: 12.5px; color: rgba(255,255,255,.65); }

/* ============ 2. PANEL LATERAL + FOTOGRAFÍA (plataformas empresariales) ============ */
body.ll { display: grid; grid-template-columns: minmax(420px, 520px) 1fr; background: #fff; }
.ll__panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 4vh, 40px) clamp(28px, 4vw, 64px); min-height: 0; }
.ll__form { width: 100%; max-width: 380px; }
.ll__socio { margin: 20px 0 0; font-size: 13px; color: var(--suave); }
.ll__socio b { color: var(--texto-2); }
.ll__pie { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--suave); max-width: 380px; }
.ll__pie a { color: var(--suave); }
.ll__pie a:hover { color: var(--texto); }
.ll__foto { position: relative; background: var(--tinta) center 40% / cover no-repeat; }
.ll__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tinta-rgb), .10) 0%, rgba(var(--tinta-rgb), 0) 40%, rgba(var(--tinta-rgb), .85) 100%); }
.ll__leyenda { position: absolute; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 5vh, 52px); z-index: 1; color: #fff; max-width: 520px; }
.ll__leyenda span { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); padding-bottom: 10px; border-bottom: 2px solid var(--oro); }
.ll__leyenda p { margin: 14px 0 0; font-size: clamp(20px, 2.8vh, 26px); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }

/* ============ 3. MINIMALISTA (SaaS / cuentas corporativas) ============ */
body.lm { display: grid; grid-template-rows: auto 1fr auto; background: #fff; }
.lm__top { display: flex; justify-content: space-between; align-items: center; padding: clamp(16px, 3vh, 24px) clamp(20px, 4vw, 48px); border-bottom: 1px solid #eaecf0; }
.lm__web { font-size: 13.5px; font-weight: 600; color: var(--texto-2); }
.lm__web:hover { color: var(--texto); }
.lm__centro { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 460px); justify-content: center; align-items: center; gap: clamp(40px, 7vw, 110px); padding: 0 40px; min-height: 0; }
.lm__sello { display: inline-block; font-size: 12px; font-weight: 600; color: var(--acento-600); background: var(--acento-100); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.lm__form h1 { font-size: 28px; }
.lm__foto { position: relative; height: min(64vh, 560px); border-radius: 16px; overflow: hidden; background: center 40% / cover no-repeat; }
.lm__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tinta-rgb), 0) 50%, rgba(var(--tinta-rgb), .8) 100%); }
.lm__foto div { position: absolute; left: 24px; bottom: 22px; z-index: 1; color: #fff; }
.lm__foto span { display: block; font-size: 12.5px; color: rgba(255,255,255,.8); }
.lm__foto b { font-size: 20px; font-weight: 700; }
.lm__pie { display: flex; justify-content: space-between; padding: clamp(14px, 2.4vh, 20px) clamp(20px, 4vw, 48px); border-top: 1px solid #eaecf0; font-size: 12.5px; color: var(--suave); }

/* Pantallas bajas */
@media (max-height: 700px) { .f-sub { margin-bottom: 16px; } .f-form { gap: 12px; } .ll__socio { display: none; } }
/* Celular */
@media (max-width: 900px) {
  body.lc, body.ll, body.lm { height: auto; min-height: 100dvh; overflow: auto; }
  body.ll { grid-template-columns: 1fr; }
  .ll__foto { display: none; }
  .lm__centro { grid-template-columns: 1fr; padding: 32px 20px; }
  .lm__foto { display: none; }
  .lc__tarjeta { padding: 28px 22px; }
}

/* Centrado: nombre de la plataforma junto al escudo y frase célebre */
.lc__marca { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 2.8vh, 26px); }
.lc__marca .lc__escudo { margin-bottom: 0; }
.lc__marca div { padding-left: 14px; border-left: 1px solid #e4e7ec; }
.lc__marca b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); line-height: 1.1; }
.lc__marca span { font-size: 12.5px; color: var(--suave); }
.lc__cita { margin: 10px 0 clamp(18px, 3vh, 26px); padding: 2px 0 2px 14px; border-left: 2px solid var(--oro); }
.lc__cita p { margin: 0; font-size: 15px; font-style: italic; color: var(--texto-2); line-height: 1.45; }
.lc__cita cite { display: block; margin-top: 4px; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .04em; color: var(--suave); }
.lc__cita p { font-style: normal; font-weight: 700; font-size: 15.5px; color: var(--tinta); }
.lc__cita span { display: block; margin-top: 3px; font-size: 13px; color: var(--suave); }
