/* =========================================
   LOGIN — Profesional
   ========================================= */

body.login-page {
    margin: 0;
    min-height: 100vh;
    background: #fff;
}

body.login-page .main-content {
    margin-left: 0;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    display: flex;
}

.lp-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ═══════════════════════════════
   PANEL IZQUIERDO
   ═══════════════════════════════ */
.lp-brand {
    flex: 0 0 420px;
    background: #1c3d6e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 48px;
    box-sizing: border-box;
    position: relative;
}

.lp-brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.lp-brand__body {
    display: flex;
    flex-direction: column;
}

.lp-brand__escudo {
    width: 88px;
    height: 88px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.lp-brand__escudo img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    display: block;
}

.lp-brand__name {
    margin: 0 0 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lp-brand__region {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lp-brand__footer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.55;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* ═══════════════════════════════
   PANEL DERECHO
   ═══════════════════════════════ */
.lp-form-panel {
    flex: 1;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    box-sizing: border-box;
}

.lp-form-wrap {
    width: 100%;
    max-width: 380px;
}

.lp-form-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f1c38;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-form-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: #1c3d6e;
    border-radius: 2px;
    flex-shrink: 0;
}

.lp-form-sub {
    margin: 0 0 32px;
    font-size: 0.875rem;
    color: #6b7280;
    padding-left: 16px;
}

.lp-alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    font-size: 0.875rem;
    color: #b91c1c;
    font-weight: 500;
    line-height: 1.4;
}

.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.lp-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.lp-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-input:focus {
    border-color: #1c3d6e;
    box-shadow: 0 0 0 3px rgba(28,61,110,0.1);
}

.lp-input::placeholder { color: #9ca3af; }

.lp-btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    background: #1c3d6e;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
}

.lp-btn:hover  { background: #163260; }
.lp-btn:active { background: #0f2349; transform: scale(0.99); }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 900px) {
    .lp-brand {
        flex: 0 0 340px;
        padding: 44px 36px;
    }
}

@media (max-width: 660px) {
    .lp-split { flex-direction: column; }

    .lp-brand {
        flex: none;
        padding: 20px 24px;
        flex-direction: row;
        align-items: center;
    }

    .lp-brand::after { display: none; }

    .lp-brand__body {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .lp-brand__escudo {
        width: 52px;
        height: 52px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .lp-brand__escudo img { width: 38px; height: 38px; }

    .lp-brand__name   { font-size: 1rem; margin-bottom: 2px; }
    .lp-brand__region { font-size: 0.68rem; }
    .lp-brand__footer { display: none; }

    .lp-form-panel {
        background: #fff;
        padding: 32px 24px 52px;
        align-items: flex-start;
    }

    .lp-form-wrap { max-width: 100%; }
}
