/* ================================================
   SYSCAS · Login con la identidad de SIREPA-i (20/11/2026)
   Panel lateral y caja de ingreso copiados de sirepai_produccion/public/css/login-v2.css.
   El calendario cívico de SIREPA-i se reemplaza por un lado de presentación de SYSCAS.
   ================================================ */
.login-v2 {
    --lg-marino: #102a4c;
    --lg-azul: #1363D0;
    --lg-azul-osc: #0d4a9e;
    --lg-tinta: #1f2937;
    --lg-suave: #5b6472;
    --lg-campo: #f6f7f9;
    --lg-linea: #d9dee5;
    --lg-panel: 440px;
    --lg-ease: cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    min-height: 100vh;
    background: #eef2f7;
    color: var(--lg-tinta);
    font-family: 'Poppins', system-ui, sans-serif;
}
.login-v2 *, .login-v2 *::before, .login-v2 *::after { box-sizing: border-box; }

.lg { min-height: 100vh; display: grid; grid-template-columns: var(--lg-panel) minmax(0, 1fr); }

/* Panel lateral sólido */
.lg-panel {
    position: sticky; top: 0; z-index: 30; height: 100vh; min-height: 640px; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center;
    padding: 26px clamp(20px, 3vw, 36px) 18px;
    background: #fff; border-right: 1px solid #dce2ea; box-shadow: 8px 0 32px -16px rgba(17, 24, 39, .28);
}
.lg-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--lg-marino), var(--lg-azul)); }
.lg-col { width: 100%; max-width: 360px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 0; }

/* Marca */
.lg-marca { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lg-logo { position: relative; width: 74px; height: 74px; border-radius: 50%; background: #e3ecf8 !important; display: grid; place-items: center; margin-bottom: 10px; }
.lg-logo img { width: 44px; height: 44px; }
.lg-logo .logo-santa-hat { position: absolute; top: -14px; right: -6px; transform: rotate(18deg) scale(.8); }
.lg-nombre { margin: 0; font-size: 27px; font-weight: 600; color: var(--lg-marino); letter-spacing: .01em; line-height: 1.1; }
.lg-nombre i { font-style: normal; font-weight: 300; color: var(--lg-azul); }
.lg-sub { margin: 4px 0 0; font-size: 13px; font-weight: 400; color: var(--lg-suave); }

/* Caja de ingreso */
.lg-caja { background: #fff; border: 1px solid #e3e7ed; border-radius: 12px; padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 10px 28px -18px rgba(17, 24, 39, .28); }
.lg-h1 { margin: 0 0 2px; text-align: center; font-size: 21px; font-weight: 600; color: var(--lg-marino); }
.lg-status { margin: 0; padding: 9px 12px; border-radius: 8px; background: #ecfdf3; color: #14532d; font-size: 14px; }

.lg-campo { display: flex; flex-direction: column; gap: 5px; }
.lg-input { position: relative; }
.lg-input > i.lg-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6b7380; font-size: 15px; pointer-events: none; }
.lg-input input {
    width: 100%; height: 52px; padding: 19px 14px 5px 42px !important; margin: 0 !important;
    border: 1px solid var(--lg-linea); border-radius: 8px; background: var(--lg-campo);
    font: 400 15px 'Poppins', system-ui, sans-serif; color: var(--lg-tinta);
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.lg-input input:hover { border-color: #b8c0cc; }
.lg-input input:focus { outline: none; background: #fff; border-color: var(--lg-azul); box-shadow: 0 0 0 3px rgba(19, 99, 208, .2); }
.lg-input label {
    position: absolute; left: 42px; top: 50%; transform: translateY(-50%); margin: 0;
    font-size: 15px; font-weight: 400; color: #6b7380; pointer-events: none; transform-origin: left center;
    transition: transform 160ms var(--lg-ease), color 160ms ease;
}
.lg-input input:focus + label, .lg-input input:not(:placeholder-shown) + label { transform: translateY(-118%) scale(.78); color: var(--lg-azul); font-weight: 600; }
.lg-campo.is-error input { border-color: #b3261e; }
.lg-campo.is-error .lg-input label { color: #a61b14; }
.lg-error { margin: 0; font-size: 13px; color: #b3261e; font-weight: 500; }
.lg-aviso { margin: 0; padding: 6px 10px; border-radius: 6px; background: #fef3c7; color: #713f12; font-size: 13px; font-weight: 500; }
.lg-input input#txtpws { padding-right: 52px !important; }
.lg-ver { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: #4b5563; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.lg-ver:hover { background: #ebeef2; }

.lg-fila { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-link { font-size: 13.5px; color: var(--lg-azul); text-underline-offset: 3px; }
.lg-link:hover { color: var(--lg-azul-osc); }
.lg-btn {
    position: relative; height: 50px; border: 0; border-radius: 8px; background: var(--lg-azul); color: #fff; cursor: pointer;
    font: 600 14.5px 'Poppins', system-ui, sans-serif; letter-spacing: .02em;
    box-shadow: 0 4px 12px -4px rgba(19, 99, 208, .55); transition: background-color 200ms ease, transform 120ms var(--lg-ease);
}
.lg-btn:hover { background: var(--lg-azul-osc); }
.lg-btn:active { transform: scale(.98); }
.lg-btn[aria-disabled="true"] { cursor: progress; background: var(--lg-azul-osc); }
.lg-btn-in { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.lg-spin { width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lgGiro 700ms linear infinite; }
@keyframes lgGiro { to { transform: rotate(360deg); } }
.lg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.is-temblor { animation: lgTemblor 320ms cubic-bezier(.645, .045, .355, 1); }
@keyframes lgTemblor { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }
.lg-ente { margin: 10px 0 0; font-size: 12.5px; color: #6b7380; text-align: center; }

.login-v2 :focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

/* ---------- Propio de SYSCAS ---------- */
body.login-v2 { margin: 0; }
.lg-logo img { width: 44px; height: 44px; } /* mismo tamaño que el ícono de SIREPA-i en su login */
.lg-error-caja { padding: 9px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; text-align: center; }
.lg-error[hidden], .lg-aviso[hidden] { display: none; }
.lg-btn:disabled { cursor: progress; }
.lg-nota { margin: 0; padding: 10px 14px; border-radius: 10px; background: #f4f7fb; border: 1px solid #e3e7ed; font-size: 13px; line-height: 1.45; color: var(--lg-suave); }
.lg-nota i { color: var(--lg-azul); margin-right: 4px; }

/* Lado de presentación: el mismo empalme marino → azul de la cabecera del sistema */
.lg-lado {
    position: relative; overflow: hidden; display: flex; align-items: center;
    padding: 48px clamp(32px, 6vw, 96px);
    background: linear-gradient(135deg, var(--lg-marino) 0%, var(--lg-marino) 35%, var(--lg-azul) 100%);
    color: #fff;
}
.lg-lado::before, .lg-lado::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.lg-lado::before { width: 520px; height: 520px; right: -160px; top: -140px; }
.lg-lado::after { width: 340px; height: 340px; right: 60px; bottom: -170px; background: rgba(255, 255, 255, .04); }
.lg-lado-in { position: relative; z-index: 1; max-width: 560px; }
.lg-lado-eti { margin: 0 0 14px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: #dbe7f8; }
.lg-lado-tit { margin: 0 0 30px; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.2; color: #fff; }
.lg-lado-lista { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.lg-lado-lista li { display: flex; gap: 14px; align-items: flex-start; }
.lg-lado-lista li > span { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 17px; color: #fff; }
.lg-lado-lista strong { display: block; font-size: 15.5px; font-weight: 600; color: #fff; }
.lg-lado-lista p { margin: 2px 0 0; font-size: 13.5px; color: #c9d8ee; line-height: 1.45; }
.lg-lado-pie { margin: 0; font-size: 13px; color: #a9bfdf; }
.lg-lado-pie b { color: #fff; font-weight: 600; }
.lg-lado-pie i { font-style: normal; font-weight: 300; }

@media (max-width: 1000px) {
    .login-v2 { background: #fff; }
    .lg { grid-template-columns: minmax(0, 1fr); }
    .lg-panel { position: static; height: auto; min-height: 100vh; box-shadow: none; border-right: 0; }
    .lg-lado { display: none; }
}
@media (min-width: 1001px) and (max-height: 760px) {
    .lg-panel { padding-top: 16px; padding-bottom: 10px; }
    .lg-col { gap: 10px; padding: 0; }
    .lg-logo { width: 54px; height: 54px; margin-bottom: 6px; }
    .lg-logo img { width: 36px; height: 36px; }
    .lg-caja { padding: 16px 20px 14px; gap: 10px; }
    .lg-input input { height: 48px; }
    .lg-btn { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .is-temblor { animation: none !important; }
    .lg-spin { animation-duration: 1.6s; }
    .lg-input input, .lg-input label, .lg-btn { transition: none; }
}
