
/* ==========================================================
   LOGIN PRODUCTIVO — LOGÍSTICA VIZCAYA
   Fondo: imagen LIMPIA, sin formulario incrustado.
   Formulario: HTML real.
   ========================================================== */

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body.lv-auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #03131b;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lv-auth-page,
.lv-auth-page * {
    box-sizing: border-box;
}

.lv-auth-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 28px;
    isolation: isolate;
    overflow: hidden;
}

.lv-auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        url("../../images/brand/logistica-vizcaya-bg-clean.png") center center / cover no-repeat;
}

.lv-auth-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 48%, rgba(1, 18, 24, .10) 0%, rgba(1, 12, 18, .18) 38%, rgba(0, 7, 11, .38) 100%),
        linear-gradient(90deg, rgba(0, 9, 14, .12), rgba(0, 12, 18, .04) 55%, rgba(0, 7, 12, .18));
    pointer-events: none;
}

.lv-auth-card {
    width: min(500px, calc(100vw - 36px));
    padding: 42px 40px 30px;
    border-radius: 26px;
    border: 1px solid rgba(138, 214, 207, .34);
    background:
        linear-gradient(180deg, rgba(8, 31, 40, .94), rgba(2, 23, 30, .96));
    box-shadow:
        0 28px 75px rgba(0,0,0,.48),
        0 0 0 1px rgba(255,255,255,.025) inset,
        0 0 36px rgba(112, 204, 75, .10);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lv-auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.lv-auth-brand img {
    display: block;
    width: min(330px, 82%);
    max-height: 118px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.lv-auth-accent {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    margin: 4px auto 18px;
    background: linear-gradient(90deg, #5fbe42, #91e268);
    box-shadow: 0 0 13px rgba(121, 214, 83, .45);
}

.lv-auth-title {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.02em;
}

.lv-auth-subtitle {
    margin: 8px 0 28px;
    color: rgba(229, 239, 242, .72);
    text-align: center;
    font-size: 15px;
    font-weight: 400;
}

.lv-auth-form {
    position: relative;
}

.lv-auth-field {
    position: relative;
    margin-bottom: 14px;
}

.lv-auth-input {
    width: 100%;
    height: 58px;
    border-radius: 12px;
    border: 1px solid rgba(191, 218, 226, .23);
    background: rgba(18, 42, 51, .90);
    color: #fff;
    outline: none;
    padding: 0 50px 0 52px;
    font-size: 16px;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lv-auth-input::placeholder {
    color: rgba(227, 237, 240, .62);
    opacity: 1;
}

.lv-auth-input:focus {
    border-color: rgba(129, 220, 89, .82);
    background: rgba(20, 46, 55, .98);
    box-shadow: 0 0 0 3px rgba(118, 205, 76, .12);
}

.lv-auth-field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(237, 246, 248, .90);
    font-size: 20px;
    z-index: 2;
    pointer-events: none;
}

.lv-auth-field .show-hide {
    right: 17px !important;
    top: 50% !important;
    transform: translateY(-50%);
    color: rgba(236, 244, 246, .78) !important;
}

.lv-auth-forgot {
    display: block;
    width: fit-content;
    margin: 5px 0 24px auto;
    color: #79d953;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.lv-auth-forgot:hover {
    color: #9bec78;
    text-decoration: none;
}

.lv-auth-submit {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #79d84d, #61c93f);
    color: #061508;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(100, 205, 63, .20);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.lv-auth-submit:hover {
    filter: brightness(1.055);
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(100, 205, 63, .26);
}

.lv-auth-submit:active {
    transform: translateY(0);
}

.lv-auth-divider {
    height: 1px;
    margin: 30px 0 20px;
    background: rgba(218, 235, 240, .14);
}

.lv-auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(226, 237, 240, .66);
    font-size: 13px;
}

.lv-auth-secure i {
    color: #78d94f;
}

/* El loader del sistema sigue operativo, pero siempre sobre el formulario real. */
.lv-auth-card .dimmer {
    border-radius: 26px;
}

/* Evita que estilos legacy del template reconstruyan cajas detrás del nuevo formulario. */
.lv-auth-page .login-img,
.lv-auth-page .page,
.lv-auth-page .container-login100,
.lv-auth-page .wrap-login100,
.lv-auth-page .card-body {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    min-height: 0 !important;
}

@media (max-width: 640px) {
    .lv-auth-shell {
        padding: 18px;
        align-items: center;
    }

    .lv-auth-card {
        padding: 34px 22px 24px;
        border-radius: 22px;
    }

    .lv-auth-brand img {
        width: min(280px, 88%);
    }

    .lv-auth-title {
        font-size: 23px;
    }

    .lv-auth-input,
    .lv-auth-submit {
        height: 54px;
    }
}

@media (max-height: 720px) and (min-width: 700px) {
    .lv-auth-card {
        padding-top: 25px;
        padding-bottom: 22px;
        transform: scale(.92);
    }
}
