﻿/* =======================================================
   RESET BÁSICO
======================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: url('/assets/img/login/fondo-lila-blur-cs.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =======================================================
   CONTENEDOR PRINCIPAL
======================================================= */
.login-shell {
    width: 1100px;
    max-width: 95%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}

/* =======================================================
   PANEL BLANCO DIAGONAL
======================================================= */
.login-panel {
    position: absolute;
    inset: 0;
    width: 60%;
    background: rgba(255,255,255,1);
     background: rgba(255,255,255,.96);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    padding: 60px 70px;
    z-index: 2;
}
/*.login-panel {
    position: absolute;
    inset: 0;
    width: 60%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    padding: 60px 70px;
    z-index: 2;
}
*/
/* =======================================================
   TITULO
======================================================= */
.brand {
    margin-bottom: 36px;
}

    .brand span {
        font-size: 28px;
        letter-spacing: 2px;
        color: #374151;
    }

/* =======================================================
   BOOTSTRAP ADAPTADO AL DISEÑO
======================================================= */

/* Ancho controlado */
.login-panel .form-group {
    max-width: 280px;
}

/* Inputs */
/*.login-panel .form-control {
    height: 38px;
    font-size: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    box-shadow: none;
}

    .login-panel .form-control:focus {
        border-color: #9ca3af;
        box-shadow: none;
    }*/


.login-panel .form-control {
    height: 38px;
    font-size: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
    transition: all .2s ease;
}

.login-panel .form-control:focus {
    border-color: #2563eb;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08),
                0 0 0 2px rgba(37,99,235,.15);
}


/* Password input group */
.login-panel .login-input-group {
    max-width: 280px;
}

    .login-panel .login-input-group .form-control {
        border-right: 0;
    }

/* Botón del ojo */
.login-panel .btn-eye {
    border: 1.5px solid #d1d5db;
    border-left: 0;
    background: #b1b1b1;
    height: 38px;
    padding: 0 12px;
    color: #fff;
 
}

    .login-panel .btn-eye:focus {
        box-shadow: none;
    }

/* Checkbox */
.login-panel .custom-control {
    max-width: 280px;
}

/* Botón principal */
.login-panel .btn-login {
    max-width: 280px;
    height: 38px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}

/* Colores botón */
.login-panel .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

    .login-panel .btn-primary:hover {
        background: #1e4fd8;
        border-color: #1e4fd8;
    }

/* =======================================================
   IMAGEN DERECHA
======================================================= */
.login-image {
    position: absolute;
    inset: 0;
    right: -46%;
    background: url('/assets/img/login/sideways-man-working-his-laptop-cs.jpg') 70% center/50% no-repeat;
    z-index: 1;
}

    .login-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0,0,0,.15), rgba(0,0,0,.55) );
    }

/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width: 992px) {

    .login-panel {
        width: 100%;
        clip-path: none;
        padding: 40px 28px;
    }

        .login-panel .form-group,
        .login-panel .login-input-group,
        .login-panel .btn-login,
        .login-panel .custom-control {
            max-width: 100%;
            width: 100%;
        }

    .login-image {
        display: none;
    }
}


/* ===== Fix alineación checkbox ===== */

.login-panel .custom-control {
    display: flex;
    align-items: center;
    max-width: 280px;
}

.login-panel .custom-control-input {
    position: relative;
    margin-right: 0px;
}

.login-panel .custom-control-label {
    margin: 0;
    padding-top: 5px; /* ajuste fino vertical */
}


.custom-control {
 
    padding-left: 0.7rem !important;
}




/* ===== Animación entrada suave ===== */

.login-panel {
    animation: fadeSlide 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-image {
    animation: fadeImage 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeImage {
    to {
        opacity: 1;
    }
}
