﻿/* ==========================================================
   Pantalla de ingreso (Default.vbhtml)
   ========================================================== */
.lg {
    --lg-primary: #29B4B2;
    --lg-primary-dark: #1f8f8d;
    --lg-navy: #17223C;
    --lg-ink: #1f2d3d;
    --lg-muted: #6b7785;
    --lg-line: #dfe4e8;
    --lg-bad: #d0453a;
    display: flex; min-height: 100vh; background: #f4f6f8;
    font-size: 14px; color: var(--lg-ink);
}

/* El tema deja espacio para la barra superior; en el login no hay barra */
#page-container.lg-page, #page-container:has(> .lg) { padding-top: 0 !important; }

/* ---------- Panel de marca ---------- */
.lg-brand {
    position: relative; overflow: hidden;
    flex: 0 0 44%; max-width: 620px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 48px;
    color: #fff;
    background: linear-gradient(150deg, var(--lg-navy) 0%, #1b3a55 48%, var(--lg-primary-dark) 100%);
}
.lg-brand-top, .lg-mobile-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: .2px; }
.lg-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--lg-primary); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(41,180,178,.35);
}
.lg-brand-mid { position: relative; z-index: 1; max-width: 430px; }
.lg-brand h1 { color: #fff; font-size: 34px; line-height: 1.15; font-weight: 700; margin: 0 0 14px; letter-spacing: -.3px; }
.lg-brand p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
.lg-feats { list-style: none; margin: 0; padding: 0; }
.lg-feats li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: rgba(255,255,255,.9); }
.lg-feats i {
    width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); color: #7fe0de; font-size: 15px;
}
.lg-brand-foot { font-size: 12px; color: rgba(255,255,255,.5); position: relative; z-index: 1; }
.lg-deco { position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; opacity: .12; }
.lg-deco circle { fill: none; stroke: #fff; stroke-width: 1.5; }

/* ---------- Formulario ---------- */
.lg-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.lg-card {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 16px; padding: 36px 34px 28px;
    box-shadow: 0 10px 40px rgba(23,34,60,.08), 0 1px 3px rgba(23,34,60,.06);
}
.lg-mobile-brand { display: none; margin-bottom: 22px; color: var(--lg-navy); }
.lg-card h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--lg-ink); }
.lg-sub { color: var(--lg-muted); margin: 0 0 22px; }

.lg-alert {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fbe5e3; color: #a3352c; border-radius: 10px;
    padding: 10px 14px; margin-bottom: 18px; font-size: 13px; font-weight: 500;
}
.lg-alert i { margin-top: 2px; }

.lg-field { margin-bottom: 16px; }
.lg-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--lg-ink); margin-bottom: 6px; }
.lg-input { position: relative; }
.lg-input > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #9aa5b1; font-size: 15px; pointer-events: none;
}
.lg-input input {
    width: 100%; height: 46px; padding: 0 44px 0 42px;
    border: 1px solid var(--lg-line); border-radius: 10px; background: #fff;
    font-size: 14.5px; color: var(--lg-ink); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.lg-input input:focus { border-color: var(--lg-primary); box-shadow: 0 0 0 3px rgba(41,180,178,.18); }
.lg-input input:focus ~ i, .lg-input:focus-within > i { color: var(--lg-primary-dark); }
.lg-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
    color: #9aa5b1; cursor: pointer; font-size: 15px;
}
.lg-eye:hover { background: #f2f5f7; color: var(--lg-ink); }
.lg-eye.on { color: var(--lg-primary-dark); }
.lg-eye:focus { outline: none; box-shadow: 0 0 0 2px rgba(41,180,178,.3); }

.lg-err, .lg-caps { display: none; font-size: 12px; margin-top: 6px; }
.lg-err { color: var(--lg-bad); }
.lg-caps { color: #b06e10; }
.lg-caps.show { display: block; }
.lg-field.bad .lg-err { display: block; }
.lg-field.bad .lg-input input { border-color: var(--lg-bad); box-shadow: 0 0 0 3px rgba(208,69,58,.12); }

.lg-btn {
    position: relative; width: 100%; height: 48px; margin-top: 6px;
    border: 0; border-radius: 10px; cursor: pointer;
    background: var(--lg-primary); color: #fff; font-size: 15px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 8px 20px rgba(41,180,178,.3);
    transition: background .15s, transform .05s;
}
.lg-btn:hover { background: var(--lg-primary-dark); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(41,180,178,.3); }
.lg-btn[disabled] { opacity: .85; cursor: progress; }
.lg-spin {
    display: none; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    animation: lg-spin .7s linear infinite;
}
.lg-btn.busy .lg-spin { display: inline-block; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-help { margin: 20px 0 0; text-align: center; color: var(--lg-muted); font-size: 12.5px; }
.lg-help i { margin-right: 4px; }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
    .lg-brand { flex-basis: 40%; padding: 32px; }
    .lg-brand h1 { font-size: 28px; }
}
@media (max-width: 767px) {
    .lg { background: linear-gradient(170deg, var(--lg-navy) 0%, #1b3a55 34%, #f4f6f8 34.1%); }
    .lg-brand { display: none; }
    .lg-main { align-items: flex-start; padding-top: 48px; }
    .lg-card { padding: 28px 22px 22px; }
    .lg-mobile-brand { display: flex; }
}
