﻿* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

:root {
    --blue-1: #2563eb;
    --blue-2: #1e40af;
    --blue-3: #60a5fa;
    --bg: #eef6ff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
}

.login-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    /* Más azul, sin ensuciar */
    background: linear-gradient(135deg, #60a5fa 0%, #bfdbfe 35%, #ffffff 70%, #93c5fd 100% ) !important;
}


    .login-split::before {
        content: "";
        position: absolute;
        inset: 0;
        /* Halo más visible */
        background: radial-gradient(900px 520px at 35% 45%, rgba(37,99,235,.35), transparent 60%), radial-gradient(750px 480px at 75% 55%, rgba(96,165,250,.28), transparent 60%);
        pointer-events: none;
        z-index: 0;
    }






.login-split__card {
    width: min(980px, 100%);
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--card);
    /* Más profundidad, estilo banco */
    box-shadow: 0 40px 90px rgba(2,6,23,.22), 0 14px 40px rgba(37,99,235,.18);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    position: relative;
    z-index: 1;
}


/* LEFT */
.login-split__left {
    background: linear-gradient( 160deg, #1e40af 0%, #2563eb 45%, #3b82f6 100% );
    position: relative;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-lottie {
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 18px;
}




.left-inner {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.left-illustration {
    width: 100%;
    max-width: 430px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(15,23,42,.25));
}

.left-caption {
    margin-top: 20px;
    color: rgba(255,255,255,.92);
    font-size: 12px;
    letter-spacing: .2px;
}

/* RIGHT */
.login-split__right {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.right-inner {
    width: min(360px, 100%);
    text-align: center;
}

/* LOTTIE */
.brand-motion {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-motion__lottie {
    width: 56px;
    height: 56px;
}

/* pill */
.pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(37,99,235,.12);
    color: var(--blue-2);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 14px;
}

.title {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    font-size: 22px;
}

.subtitle {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.form-login {
    text-align: left;
    margin-top: 10px;
}

.lbl {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 7px;
}

.inp {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    transition: .2s;
    background: #fff;
    color: var(--text);
}

    .inp:focus {
        border-color: rgba(37,99,235,.75);
        box-shadow: 0 0 0 4px rgba(37,99,235,.14);
    }

.btn-login {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

    .btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(37,99,235,.30);
    }

.links {
    text-align: center;
}

.link {
    font-size: 12px;
    color: var(--blue-1);
    text-decoration: none;
    font-weight: 600;
}

    .link:hover {
        text-decoration: underline;
    }

.foot {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 980px) {

    .login-split {
        padding: 16px;
    }

    .login-split__card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* LADO IZQUIERDO como BANNER */
    .login-split__left {
        padding: 18px 16px;
    }

    .left-inner {
        max-width: 520px;
    }

    /* LOTTIE más pequeño en móvil */
    .left-lottie {
        width: 260px;
        max-width: 100%;
        margin: 0 auto 10px auto;
    }

    /* Texto más compacto */
    .left-caption {
        margin-top: 8px;
        font-size: 11px;
        line-height: 1.4;
    }

    /* LADO DERECHO compacto */
    .login-split__right {
        padding: 18px 16px;
    }

    .right-inner {
        width: 100%;
        max-width: 420px;
    }

    .brand-motion__lottie {
        width: 52px;
        height: 52px;
    }
}
/* ========================================
   FIXES RESPONSIVE - AGREGAR AL FINAL
   ======================================== */

/* UTILIDADES PROPIAS (evitar dependencia Bootstrap) */
.mt-3 {
    margin-top: 12px !important;
}

.mt-4 {
    margin-top: 16px !important;
}

.py-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-danger {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

/* TABLET (768px - 980px) */
@media (max-width: 980px) and (min-width: 769px) {
    .login-split__card {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }

    .login-split__left {
        padding: 24px 20px;
    }

    .left-lottie {
        width: 320px;
    }

    .login-split__right {
        padding: 28px 24px;
    }
}

/* MÓVIL GRANDE (481px - 768px) */
@media (max-width: 768px) {
    .login-split {
        padding: 12px;
    }

    .login-split__card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .login-split__left {
        padding: 20px 16px;
    }

    .left-lottie {
        width: 240px;
    }

    .login-split__right {
        padding: 20px 16px;
    }

    .brand-motion__lottie {
        width: 48px;
        height: 48px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }
}

/* MÓVIL PEQUEÑO (hasta 480px) */
@media (max-width: 480px) {
    .login-split {
        padding: 8px;
    }

    .login-split__card {
        border-radius: 12px;
        min-height: auto;
    }

    .login-split__left {
        padding: 16px 12px;
    }

    .left-lottie {
        width: 200px;
    }

    .left-caption {
        font-size: 10px;
        margin-top: 6px;
    }

    .login-split__right {
        padding: 16px 12px;
    }

    .pill {
        font-size: 10px;
        padding: 6px 12px;
    }

    .title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 11px;
        margin: 6px 0 14px;
    }

    .inp {
        height: 42px;
        font-size: 14px;
    }

    .btn-login {
        height: 42px;
        font-size: 14px;
    }

    .lbl {
        font-size: 11px;
    }
}

/* FIX: Evitar overflow horizontal */
.login-split__card,
.login-split__left,
.login-split__right {
    max-width: 100%;
    overflow: hidden;
}

/* FIX: Imágenes responsive */
.left-lottie {
    max-width: 100%;
    height: auto;
}