/* Login estilo sitio PREFECO (azul petróleo + crema) */
:root { --head: #062d37; --cream: #f5f1e8; --accent: #0b7a8f; --muted: #7a8a90; --muted2: #4f6168; --surface: #f8f9f9; }
* { box-sizing: border-box; }
.lp-body { margin: 0; background: #fff; color: #171717; font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-shell { display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); gap: 1rem; min-height: 100vh; padding: 1rem; }
.lp-card { background: #fff; border-radius: 1.75rem; box-shadow: 0 1.5rem 4rem rgb(6 45 55 / .06); outline: 1px solid rgb(6 45 55 / .06); display: flex; flex-direction: column; align-items: center; padding: 3rem 4rem 2rem; animation: lp-in .5s ease both; }
.lp-card-inner { width: 100%; max-width: 30rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lp-header { text-align: center; }
.lp-crest { width: 7.5rem; height: auto; margin: 0 auto 1.25rem; display: block; }
.lp-header h1 { margin: 1rem 0 0; font-size: 2.5rem; font-weight: 600; letter-spacing: -.04em; color: var(--head); }
.lp-header p { margin: .6rem 0 0; font-size: 1.15rem; color: var(--muted2); }

.lp-tabs { display: flex; margin: 2.2rem 0 0; padding: .25rem; border: 0; border-radius: .875rem; background: rgb(6 45 55 / .05); }
.lp-tabs label { flex: 1; cursor: pointer; }
.lp-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.lp-tabs span { display: flex; align-items: center; justify-content: center; height: 3rem; padding: 0 .6rem; border-radius: .625rem; font-weight: 600; font-size: 1rem; white-space: nowrap; color: var(--muted2); transition: color .3s, background-color .3s, box-shadow .3s; }
.lp-tabs label:hover span { color: var(--head); }
.lp-tabs input:checked + span { background: #fff; color: var(--head); box-shadow: 0 .125rem .75rem rgb(6 45 55 / .1); }
.lp-tabs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.lp-divider { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--muted); }
.lp-divider span { flex: 1; height: 1px; background: rgb(6 45 55 / .1); }

.lp-input { width: 100%; height: 4rem; padding: 0 1.5rem; border: 1px solid rgb(6 45 55 / .1); border-radius: .875rem; background: var(--surface); font-size: 1.2rem; color: var(--head); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.lp-input::placeholder { color: var(--muted); }
.lp-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgb(11 122 143 / .12); }
.lp-help { margin: .5rem 0 0 .25rem; font-size: .95rem; color: var(--muted); }
.lp-pass { position: relative; margin-top: 1rem; }
.lp-pass .lp-input { padding-right: 4rem; }
.lp-eye { position: absolute; top: 50%; right: .6rem; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; background: none; border-radius: 50%; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lp-eye:hover { color: var(--head); }
.lp-eye svg { width: 1.25rem; height: 1.25rem; }
.lp-forgot { display: flex; justify-content: flex-end; margin-top: .5rem; }
.lp-forgot button { border: 0; background: none; padding: 0; font-size: 1rem; font-weight: 500; color: var(--accent); cursor: pointer; }
.lp-forgot button:hover { opacity: .7; }
.lp-note { margin: 1.25rem 0 0; font-size: 1rem; color: var(--muted2); }
.lp-error { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: .75rem; background: #fdecec; color: #b42318; font-size: .95rem; }
.lp-submit { width: 100%; height: 4rem; margin-top: 1.75rem; border: 0; border-radius: .875rem; background: var(--head); color: var(--cream); font-size: 1.2rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem; transition: background-color .2s; }
.lp-submit:hover { background: #0a4452; }
.lp-submit span { transition: transform .2s; }
.lp-submit:hover span { transform: translateX(4px); }

.lp-foot { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .85rem; }
.lp-foot img { width: 90px; }
.lp-foot p { margin: .5rem 0 0; }

.lp-aside { min-height: 0; }
.lp-photo { display: none; }
.lp-mosaic { --gap: .5625rem; --unit-x: calc((100cqw - 3 * var(--gap)) / 6); --unit-y: calc((100cqh - 3 * var(--gap)) / 13); --photo-w: max(100cqw, calc(100cqh * 1448 / 1086)); height: 100%; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); container-type: size; }
.lp-tile, .lp-pe { border-radius: 1.125rem; animation: lp-enter .52s cubic-bezier(.22, 1, .36, 1) both; }
.lp-tile { background-image: url("../img/login-plaza.webp"), linear-gradient(135deg, #0a4452, #062d37); background-repeat: no-repeat; background-size: var(--photo-w) auto, cover; background-position: calc((100cqw - var(--photo-w)) / 2 - var(--x) * var(--unit-x) - var(--gx) * var(--gap)) calc((100cqh - var(--photo-w) * 1086 / 1448) / 2 - var(--y) * var(--unit-y) - var(--gy) * var(--gap)), 0 0; }
.lp-pe { padding: 1.5rem; display: flex; overflow: hidden; position: relative; min-width: 0; }
.lp-tile-dark { background: var(--head); color: var(--cream); justify-content: space-between; gap: 1rem; align-items: stretch; }
.lp-tile-cream { background: var(--cream); color: var(--head); flex-direction: column; justify-content: space-between; }
.lp-cream-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.lp-tile-blue { background: linear-gradient(to bottom right, #1c88aa, #125b7b); padding: 0; }
.lp-tile-title { margin: 0; font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.lp-tile-sub { margin: .4rem 0 0; font-size: .85rem; opacity: .65; max-width: 14rem; }
.lp-tile-dark > div { display: flex; flex-direction: column; justify-content: flex-end; }
.lp-tile-dark ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .5rem; }
.lp-tile-dark li { height: 2.25rem; display: flex; align-items: center; padding: 0 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; white-space: nowrap; background: rgb(255 255 255 / .1); color: rgb(245 241 232 / .7); }
.lp-tile-dark li.done { background: rgb(255 255 255 / .14); color: rgb(245 241 232 / .85); }
.lp-crest-mark { display: block; flex-shrink: 0; -webkit-mask: url("../img/LOGOPREFECOnegro.png") 50% center / contain no-repeat; mask: url("../img/LOGOPREFECOnegro.png") 50% center / contain no-repeat; }
.lp-crest-dark { width: 1.75rem; height: 1.7rem; background: var(--head); }
.lp-crest-cream { position: absolute; right: -1.9rem; bottom: -1.7rem; width: 8.6rem; height: 8.25rem; background: rgb(245 241 232 / .9); }

@keyframes lp-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-tile, .lp-pe { animation: none; } }
@keyframes lp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
    .lp-shell { grid-template-columns: 1fr; }
    .lp-aside { order: -1; }
    .lp-mosaic { display: none; }
    .lp-photo { display: block; height: 10rem; border-radius: 1.5rem; background: url("../img/login-plaza.webp") center 62% / cover, linear-gradient(135deg, #0a4452, #062d37); }
    .lp-card { padding: 2.25rem 1.5rem 2rem; }
    .lp-header h1 { font-size: 2.25rem; }
    .lp-crest { width: 5.5rem; }
    .lp-input, .lp-submit { height: 3.25rem; font-size: 1rem; }
    .lp-tabs span { height: 2.75rem; font-size: .875rem; }
}
