/* Inicio de sesión — diseño propio, aislado de AdminLTE y de auth.css.
   Todo cuelga de .lg-body / .lg-* para no chocar con otras hojas.
   Colores en variables: otra liga puede cambiarlos sin tocar el diseño. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jakarta/jakarta-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jakarta/jakarta-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jakarta/jakarta-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jakarta/jakarta-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/jakarta/jakarta-latin-800.woff2') format('woff2'); }

:root {
    --lg-navy: #061C38;
    --lg-navy-2: #0A3975;
    --lg-blue: #0057C8;
    --lg-sky: #087BFF;
    --lg-white: #FFFFFF;
    --lg-bg: #F4F7FC;
    --lg-muted: #64748B;
    --lg-line: #D4DEEC;
    --lg-ink: #0B1B33;
    --lg-danger: #D92D20;
    --lg-ok: #067647;
    --lg-ease: 200ms ease;
}

.lg-body, .lg-body * { box-sizing: border-box; }
.lg-body {
    margin: 0; min-height: 100vh; background: var(--lg-bg); color: var(--lg-ink);
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.lg-body a { color: var(--lg-blue); font-weight: 600; text-decoration: none; transition: color var(--lg-ease); }
.lg-body a:hover { color: var(--lg-navy-2); text-decoration: underline; }
.lg-body :focus-visible { outline: 3px solid var(--lg-sky); outline-offset: 2px; border-radius: 8px; }
.lg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lg { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Fondo: en celular solo detrás de la cabecera; en escritorio, todo   */
/* ------------------------------------------------------------------ */
.lg-bg { position: absolute; left: 0; right: 0; top: 0; height: 330px; z-index: 0; overflow: hidden; }
.lg-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 100%; }
.lg-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(6,28,56,.55) 0%, rgba(6,28,56,.15) 45%, rgba(6,28,56,0) 70%, rgba(6,28,56,.25) 100%),
        radial-gradient(70% 60% at 32% 45%, rgba(6,28,56,.45), rgba(6,28,56,0) 70%);
}
/* Reflectores */
.lg-glow { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(200,225,255,.55) 16%, rgba(120,170,255,.16) 42%, rgba(120,170,255,0) 68%); }
.lg-glow-1 { width: 110px; height: 110px; left: 2%; top: 22%; }
.lg-glow-2 { width: 130px; height: 130px; right: 6%; top: 8%; }
/* Esquina superior izquierda: franjas azules y puntos */
.lg-corner { position: absolute; z-index: 1; left: 0; top: 0; width: 150px; height: 150px; pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 30%, var(--lg-sky) 30% 36%, transparent 36% 42%, rgba(0,87,200,.85) 42% 45%, transparent 45%),
        radial-gradient(rgba(120,170,255,.55) 1.4px, transparent 1.7px) 0 0 / 10px 10px;
    -webkit-mask: linear-gradient(135deg, #000 28%, transparent 60%); mask: linear-gradient(135deg, #000 28%, transparent 60%); }
.lg-wedge { display: none; }

/* ------------------------------------------------------------------ */
/* Nombre de la liga                                                   */
/* ------------------------------------------------------------------ */
.lg-hero { position: relative; z-index: 2; color: #fff; padding: 40px 16px 72px; text-align: center; min-height: 330px; display: flex; flex-direction: column; justify-content: center; }
.lg-brand { max-width: 760px; margin: 0 auto; }
.lg-kicker { margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: #fff; }
.lg-kicker span, .lg-motto span { flex: 0 1 50px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(8,123,255,0), var(--lg-sky)); }
.lg-kicker span:last-child, .lg-motto span:last-child { background: linear-gradient(90deg, var(--lg-sky), rgba(8,123,255,0)); }
.lg-name { margin: 0; font-size: 25px; line-height: 1.08; font-weight: 800; letter-spacing: .005em; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.lg-band { margin: 8px 0 0; display: flex; justify-content: center; align-items: center; }
.lg-band::before, .lg-band::after { content: ""; flex: 0 1 70px; height: 2px; background: linear-gradient(90deg, rgba(8,123,255,0), var(--lg-sky)); }
.lg-band::after { background: linear-gradient(90deg, var(--lg-sky), rgba(8,123,255,0)); }
.lg-band span {
    display: inline-block; padding: 2px 30px; font-size: 24px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: linear-gradient(90deg, var(--lg-blue), var(--lg-sky)); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.lg-motto { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 500; font-style: italic; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

.lg-quick { display: none; }

/* ------------------------------------------------------------------ */
/* Tarjeta del formulario                                              */
/* ------------------------------------------------------------------ */
.lg-main { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 0 16px 24px; margin-top: -52px; }
.lg-card {
    position: relative; overflow: hidden; width: 100%; max-width: 480px; background: #fff;
    border-radius: 24px; border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 2px 4px rgba(6,28,56,.06), 0 24px 60px rgba(6,28,56,.28);
    padding: 22px 22px 36px;
}
.lg-card > *:not(.lg-card-deco) { position: relative; z-index: 1; }
/* Franja azul diagonal al pie de la tarjeta */
.lg-card-deco { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 0; pointer-events: none; }
.lg-card-deco::before { content: ""; position: absolute; inset: 0; background: rgba(8,123,255,.22); clip-path: polygon(22% 100%, 100% 8%, 100% 30%, 40% 100%); }
.lg-card-deco::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--lg-blue), var(--lg-sky)); clip-path: polygon(40% 100%, 100% 30%, 100% 100%); }

.lg-crest { display: flex; justify-content: center; margin: 0 0 6px; }
.lg-crest img, .lg-crest-fb { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(6,28,56,.18)); }
.lg-crest-fb { display: flex; align-items: center; justify-content: center; border-radius: 24px; background: var(--lg-navy); color: #fff; font-weight: 800; font-size: 34px; }
.lg-card h1 { margin: 0; text-align: center; font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--lg-navy); letter-spacing: -.02em; }
.lg-sub { margin: 6px auto 20px; max-width: 360px; text-align: center; color: #475569; font-size: 14.5px; font-weight: 500; line-height: 1.45; }

.lg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 14px; animation: lg-in .25s ease; }
.lg-alert i { margin-top: 3px; }
.lg-alert-err { background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }
.lg-alert-ok { background: #ECFDF3; color: var(--lg-ok); border: 1px solid #ABEFC6; }

.lg-field { margin-bottom: 14px; }
.lg-input { position: relative; }
.lg-input > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--lg-navy-2); pointer-events: none; transition: color var(--lg-ease); }
.lg-input input {
    width: 100%; height: 54px; padding: 0 16px 0 52px; border: 1.5px solid var(--lg-line); border-radius: 14px; background: #fff;
    font: inherit; font-size: 15.5px; font-weight: 500; color: var(--lg-ink); box-shadow: 0 1px 2px rgba(6,28,56,.04);
    transition: border-color var(--lg-ease), box-shadow var(--lg-ease);
}
.lg-input input::placeholder { color: #64748B; font-weight: 400; }
.lg-input input:hover { border-color: #B9C8DC; }
.lg-input input:focus { outline: none; border-color: var(--lg-blue); box-shadow: 0 0 0 4px rgba(0,87,200,.12); }
.lg-input:focus-within > i { color: var(--lg-blue); }
.lg-input input#password { padding-right: 54px; }
.lg-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 10px;
    background: transparent; color: var(--lg-muted); cursor: pointer; font-size: 17px; transition: background var(--lg-ease), color var(--lg-ease);
}
.lg-eye:hover { background: var(--lg-bg); color: var(--lg-navy); }
.has-error .lg-input input { border-color: var(--lg-danger); background: #FFFBFA; }
.has-error .lg-input input:focus { box-shadow: 0 0 0 4px rgba(217,45,32,.12); }
.has-error .lg-input > i { color: var(--lg-danger); }
.lg-ferr { margin: 6px 0 0 4px; font-size: 12.5px; font-weight: 500; color: var(--lg-danger); animation: lg-in .2s ease; }
.lg-caps { margin: 6px 0 0 4px; font-size: 12.5px; font-weight: 500; color: #B54708; }

.lg-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 2px 0 18px; font-size: 14px; }
.lg-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--lg-ink); font-weight: 500; user-select: none; }
.lg-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg-check span { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #94A3B8; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background var(--lg-ease), border-color var(--lg-ease); }
.lg-check:hover span { border-color: var(--lg-blue); }
.lg-check input:checked + span { background: var(--lg-blue); border-color: var(--lg-blue); }
.lg-check input:checked + span::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.lg-check input:focus-visible + span { outline: 3px solid var(--lg-sky); outline-offset: 2px; }

.lg-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px; border-radius: 14px;
    font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; text-decoration: none !important;
    transition: background var(--lg-ease), box-shadow var(--lg-ease), transform var(--lg-ease), border-color var(--lg-ease), color var(--lg-ease);
}
.lg-btn-primary { color: #fff; background: linear-gradient(90deg, var(--lg-navy-2) 0%, var(--lg-blue) 55%, var(--lg-sky) 100%); box-shadow: 0 10px 24px rgba(0,87,200,.30); }
.lg-btn-primary i { font-size: 19px; }
.lg-btn-primary:hover { box-shadow: 0 14px 30px rgba(0,87,200,.40); transform: translateY(-1px); }
.lg-btn-primary:active { transform: translateY(0); }
.lg-btn-primary:disabled { cursor: progress; opacity: .92; transform: none; }
.lg-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: lg-spin .7s linear infinite; }
.lg-btn.is-loading .lg-spin { display: inline-block; }
.lg-btn.is-loading i { display: none; }
.lg-btn-outline { height: 54px; color: var(--lg-navy-2) !important; background: #fff; border-color: var(--lg-blue); }
.lg-btn-outline:hover { background: #F0F6FF; color: var(--lg-blue) !important; }
.lg-btn-outline i { color: var(--lg-blue); font-size: 18px; }

.lg-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--lg-muted); font-size: 13.5px; font-weight: 500; text-align: center; }
.lg-sep::before, .lg-sep::after { content: ""; flex: 1; height: 1px; background: var(--lg-line); }

/* Accesos rápidos en celular */
.lg-quick-m { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 480px; margin-top: 16px; }
.lg-quick-m a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--lg-line); color: var(--lg-navy) !important; font-size: 11.5px; font-weight: 600 !important; text-align: center; transition: transform var(--lg-ease), border-color var(--lg-ease); }
.lg-quick-m a i { font-size: 18px; color: var(--lg-blue); }
.lg-quick-m a:hover { border-color: var(--lg-blue); text-decoration: none !important; transform: translateY(-2px); }

.lg-foot { width: 100%; max-width: 480px; margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12.5px; color: var(--lg-muted); text-align: center; }
.lg-powered b { color: var(--lg-navy); font-weight: 700; letter-spacing: .06em; }

@keyframes lg-spin { to { transform: rotate(360deg); } }
@keyframes lg-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */
@media (min-width: 600px) {
    .lg-bg, .lg-hero { height: auto; min-height: 380px; }
    .lg-bg { height: 380px; }
    .lg-name { font-size: 40px; }
    .lg-band span { font-size: 32px; }
    .lg-card { padding: 28px 40px 46px; }
}

/* ------------------------------------------------------------------ */
/* Escritorio: foto de fondo completa, nombre a la izquierda (60%),    */
/* tarjeta flotante a la derecha (40%) sobre una cuña clara diagonal.  */
/* ------------------------------------------------------------------ */
@media (min-width: 992px) {
    .lg { flex-direction: row; height: 100vh; min-height: 640px; }
    .lg-bg { height: auto; inset: 0; }
    .lg-bg img { object-position: 0% 100%; }
    .lg-glow-1 { width: 150px; height: 150px; left: 3%; top: 24%; }
    .lg-glow-2 { width: 180px; height: 180px; left: 52%; right: auto; top: 12%; }
    .lg-corner { width: 260px; height: 260px; }
    .lg-wedge {
        display: block; position: absolute; z-index: 1; inset: 0; pointer-events: none;
        background: linear-gradient(160deg, #F7FAFE 0%, #E3ECF8 100%);
        clip-path: polygon(62% 100%, 84% 0, 100% 0, 100% 100%);
    }
    /* Filos azules de la cuña */
    .lg-wedge::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--lg-sky), var(--lg-blue));
        clip-path: polygon(58.6% 100%, 62% 100%, 84% 0, 80.6% 0); }
    .lg-wedge::after { content: ""; position: absolute; inset: 0; background: rgba(8,123,255,.4);
        clip-path: polygon(56.4% 100%, 57.2% 100%, 79.2% 0, 78.4% 0); }

    .lg-hero { flex: 0 0 60%; min-height: 0; justify-content: center; align-items: center; padding: 40px 32px 40px 48px; }
    .lg-kicker { font-size: clamp(16px, 1.45vw, 24px); gap: 18px; margin-bottom: 2px; }
    .lg-kicker span, .lg-motto span { flex-basis: 70px; }
    .lg-name { font-size: clamp(38px, 3.6vw, 62px); white-space: nowrap; }
    .lg-band { margin-top: 8px; }
    .lg-band::before, .lg-band::after { flex-basis: 110px; }
    .lg-band span { font-size: clamp(32px, 2.9vw, 50px); padding: 2px 46px; clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
    .lg-motto { margin-top: 12px; font-size: clamp(20px, 1.9vw, 32px); }

    .lg-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 148px)); justify-content: center; gap: clamp(14px, 1.6vw, 28px); margin-top: 40px; }
    .lg-quick a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 118px; padding: 14px 8px; border-radius: 18px;
        color: #fff !important; font-size: 16px; font-weight: 500 !important; text-align: center;
        background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,255,255,.4);
        backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 10px 26px rgba(0,0,0,.22);
        transition: transform var(--lg-ease), background var(--lg-ease), border-color var(--lg-ease);
    }
    .lg-quick a i { font-size: 38px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
    .lg-quick a:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.65); text-decoration: none !important; }

    .lg-main { flex: 1 1 40%; margin-top: 0; height: 100%; justify-content: center; padding: 24px 48px 24px 0; overflow-y: auto; }
    .lg-card { max-width: 500px; padding: 26px 44px 48px; }
    .lg-quick-m { display: none; }
    .lg-foot { margin-top: 12px; }
}
/* Pantallas bajas de escritorio: compactar para que no aparezca scroll */
@media (min-width: 992px) and (max-height: 800px) {
    .lg-crest img, .lg-crest-fb { width: 96px; height: 96px; }
    .lg-card { padding: 18px 40px 40px; }
    .lg-card h1 { font-size: 26px; }
    .lg-sub { margin-bottom: 14px; font-size: 13.5px; }
    .lg-field { margin-bottom: 10px; }
    .lg-input input { height: 48px; }
    .lg-btn, .lg-btn-outline { height: 50px; }
    .lg-row { margin-bottom: 14px; }
    .lg-sep { margin: 14px 0 10px; }
    .lg-quick { margin-top: 28px; }
    .lg-quick a { height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-body * { transition: none !important; animation: none !important; }
}
