/*==================================================
    HOTELIX ERP
    STYLE.CSS
==================================================*/

/*==========================
    RESET
==========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#2E5E4E;
    --primary-dark:#23493C;
    --primary-light:#4E8A6F;

    --white:#ffffff;

    --background:#EEF3F0;

    --text:#1E293B;

    --text-light:#64748B;

    --border:#D9E2DD;

    --radius:24px;

    --shadow:
        0 20px 60px rgba(0,0,0,.12);

    --transition:.30s ease;

}

html,
body{

    width:100%;
    height:100%;

    font-family:'Inter',sans-serif;

    background:var(--background);

    color:var(--text);

}

/*==========================
    FONDO
==========================*/

body{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:auto;

    padding:32px;

    font-family:'Inter',sans-serif;

    background:
        radial-gradient(circle at top left,
        rgba(90,150,120,.18),
        transparent 40%),

        radial-gradient(circle at bottom right,
        rgba(60,120,90,.12),
        transparent 35%),

        linear-gradient(
            135deg,
            #F7FAF8,
            #EDF3EF
        );

}

.background{

    position:fixed;

    inset:0;

    z-index:-1;

}

/*==========================
    CONTENEDOR
==========================*/

.login-wrapper{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

}

/*==========================
    TARJETA
==========================*/

.login-card{

    width:1040px;

    max-width:90%;

    min-height:600px;

    display:grid;

    grid-template-columns:1fr 470px;

    overflow:hidden;

    border-radius:30px;

    background:

    rgba(255,255,255,.82);

    backdrop-filter:blur(16px);

    box-shadow:var(--shadow);

}

/*====================================================
                PANEL IZQUIERDO
====================================================*/

.left-panel{

    position:relative;

    padding:50px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    background:

    linear-gradient(
        150deg,
        var(--primary-dark),
        var(--primary),
        #3D7C63
    );

    color:#fff;

}

/* Oscurece un poco el fondo */

.overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(
        rgba(0,0,0,.10),
        rgba(0,0,0,.18)
    );

}

/*==========================
    LOGO
==========================*/

.brand{

    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    gap:18px;

}

.logo{

    width:68px;

    height:68px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

    rgba(255,255,255,.14);

    border:

    1px solid rgba(255,255,255,.20);

    font-size:28px;

    backdrop-filter:blur(8px);

}

.brand h1{

    font-size:30px;

    font-weight:800;

    letter-spacing:-1px;

}

.brand span{

    display:block;

    margin-top:6px;

    color:

    rgba(255,255,255,.75);

    font-size:14px;

    letter-spacing:1px;

}

/*==========================
    HERO
==========================*/

.hero{

    position:relative;

    z-index:2;

    max-width:500px;

}

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:

    10px 18px;

    border-radius:999px;

    background:

    rgba(255,255,255,.12);

    border:

    1px solid rgba(255,255,255,.15);

    font-size:13px;

    font-weight:600;

    margin-bottom:30px;

}

.hero h2{

    font-size:42px;

    line-height:1.15;

    font-weight:800;

    letter-spacing:-2px;

    margin-bottom:28px;

}

.hero p{

    font-size:16px;

    line-height:1.7;

    color:

    rgba(255,255,255,.84);

}

/*==========================
    DECORACIÓN
==========================*/

.left-panel::before{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    right:-150px;

    bottom:-150px;

    border-radius:50%;

    background:

    rgba(255,255,255,.06);

}

.left-panel::after{

    content:"";

    position:absolute;

    width:240px;

    height:240px;

    top:-90px;

    right:-90px;

    border-radius:50%;

    border:

    40px solid rgba(255,255,255,.05);

}

/*====================================================
                PANEL DERECHO
====================================================*/

.right-panel{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

    background:#fff;

}

.login-box{

    width:100%;

    max-width:390px;

}

.login-box small{

    display:inline-block;

    color:var(--primary);

    font-weight:700;

    margin-bottom:12px;

    text-transform:uppercase;

    letter-spacing:1px;

    font-size:12px;

}

.login-box h2{

    font-size:32px;

    font-weight:800;

    letter-spacing:-1px;

    margin-bottom:12px;

}

.login-box p{

    color:var(--text-light);

    line-height:1.8;

    margin-bottom:38px;

}

.logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:7px;
    border-radius:16px;
    background:rgba(255,255,255,.92);
}

.login-error{

    display:none;

    align-items:flex-start;

    gap:10px;

    margin-bottom:18px;

    padding:12px 14px;

    border:1px solid #F3B7B7;

    border-radius:14px;

    background:#FFF1F1;

    color:#8A1C1C;

    font-size:14px;

    font-weight:600;

    line-height:1.4;

}

.login-error.show{

    display:flex;

}

.login-error i{

    margin-top:2px;

    color:#DC2626;

}

/*==================================================
    FORMULARIO
==================================================*/

form{

    display:flex;
    flex-direction:column;
    gap:22px;

}

.form-group{

    display:flex;
    flex-direction:column;
    gap:10px;

}

.form-group label{

    font-size:14px;
    font-weight:600;
    color:var(--text);

}

/*==================================================
    INPUTS
==================================================*/

.input-box{

    height:50px;

    display:flex;
    align-items:center;

    border:1px solid var(--border);

    border-radius:16px;

    background:#fff;

    padding:0 18px;

    transition:var(--transition);

}

.input-box:hover{

    border-color:#BFD1C8;

}

.input-box:focus-within{

    border-color:var(--primary);

    box-shadow:
        0 0 0 4px rgba(46,94,78,.12);

}

.input-box i{

    width:22px;

    font-size:17px;

    color:#94A3B8;

}

.input-box input{

    flex:1;

    height:100%;

    border:none;

    outline:none;

    background:transparent;

    padding-left:14px;

    font-size:15px;

    color:var(--text);

    font-family:'Inter',sans-serif;

}

.input-box input::placeholder{

    color:#9CA3AF;

}

/*==================================================
    BOTÓN VER CONTRASEÑA
==================================================*/

#togglePassword{

    width:40px;

    height:40px;

    border:none;

    background:transparent;

    border-radius:10px;

    cursor:pointer;

    color:#94A3B8;

    transition:var(--transition);

}

#togglePassword:hover{

    background:#F3F5F7;

    color:var(--primary);

}

/*==================================================
    OPCIONES
==================================================*/

.options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:-5px;

}

.remember{

    display:flex;

    align-items:center;

    gap:10px;

    cursor:pointer;

    font-size:14px;

    color:var(--text-light);

}

.remember input{

    width:16px;

    height:16px;

    accent-color:var(--primary);

}

.options a{

    text-decoration:none;

    color:var(--primary);

    font-size:14px;

    font-weight:600;

}

.options a:hover{

    color:var(--primary-dark);

}

/*==================================================
    BOTÓN LOGIN
==================================================*/

.btn-login{

    height:50px;

    margin-top:8px;

    border:none;

    border-radius:16px;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

    transition:var(--transition);

    box-shadow:
        0 14px 30px rgba(46,94,78,.22);

}

.btn-login:hover{

    transform:translateY(-2px);

    box-shadow:
        0 20px 40px rgba(46,94,78,.28);

}

.btn-login:active{

    transform:scale(.98);

}

.btn-login i{

    transition:var(--transition);

}

.btn-login:hover i{

    transform:translateX(4px);

}

.btn-login:disabled{

    opacity:.7;

    cursor:not-allowed;

}

/*==================================================
    FOOTER
==================================================*/

footer{

    margin-top:28px;

    padding-top:22px;

    border-top:1px solid #ECEFF2;

    display:flex;

    flex-direction:column;

    gap:6px;

}

footer strong{

    color:var(--primary);

    font-size:15px;

    font-weight:700;

}

footer span{

    font-size:13px;

    color:var(--text-light);

}

/*==================================================
    AUTOFILL
==================================================*/

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{

    -webkit-box-shadow:
        0 0 0 1000px #fff inset !important;

    -webkit-text-fill-color:var(--text);

}

/*==================================================
    SELECCIÓN
==================================================*/

::selection{

    background:rgba(46,94,78,.18);

    color:var(--primary-dark);

}

/*==================================================
    RESPONSIVE
==================================================*/

@media (max-width:1100px){

    body{

        padding:25px;

    }

    .login-card{

        grid-template-columns:1fr;

    }

    .left-panel{

        min-height:340px;

        padding:50px;

    }

    .hero{

        margin-top:40px;

    }

    .hero h2{

        font-size:42px;

    }

    .hero p{

        max-width:100%;

    }

    .right-panel{

        padding:45px;

    }

}

@media (max-width:768px){

    body{

        padding:18px;

    }

    .login-card{

        border-radius:22px;

    }

    .left-panel{

        padding:35px;

    }

    .brand h1{

        font-size:26px;

    }

    .hero h2{

        font-size:34px;

        letter-spacing:-1px;

    }

    .hero p{

        font-size:16px;

        line-height:1.7;

    }

    .right-panel{

        padding:35px 28px;

    }

    .login-box h2{

        font-size:32px;

    }

    .options{

        flex-direction:column;

        align-items:flex-start;

        gap:14px;

    }

}

@media (max-width:480px){

    body{

        padding:12px;

    }

    .left-panel{

        padding:28px;

    }

    .right-panel{

        padding:28px 22px;

    }

    .hero h2{

        font-size:28px;

    }

    .hero p{

        font-size:15px;

    }

    .input-box{

        height:54px;

    }

    .btn-login{

        height:54px;

        font-size:14px;

    }

    .logo{

        width:56px;
        height:56px;
        font-size:22px;

    }

    .brand h1{

        font-size:24px;

    }

}


/*==================================================
            HOTELIX LOADER
==================================================*/

.hotelix-loader{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(10,15,25,.5);

    backdrop-filter:blur(14px);

    opacity:0;

    transition:.3s ease;

    z-index:99999;

}

.hotelix-loader.show{

    display:flex;

    opacity:1;

}

.hotelix-card{

    width:420px;

    max-width:92%;

    padding:45px;

    border-radius:28px;

    background:rgba(255,255,255,.9);

    backdrop-filter:blur(20px);

    text-align:center;

    border:1px solid rgba(255,255,255,.6);

    box-shadow:

        0 30px 60px rgba(0,0,0,.18);

    transform:translateY(10px);

    opacity:0;

    transition:all .35s ease;

}

.hotelix-loader.show .hotelix-card{

    transform:translateY(0);

    opacity:1;

}

.hotelix-logo{

    font-size:34px;

    font-weight:700;

    color:var(--primary);

    margin-bottom:16px;

}

.hotelix-check{

    font-size:60px;

    color:var(--primary);

    margin-bottom:16px;

}

.hotelix-loader.loading .hotelix-check i{

    animation:hotelixSpin .9s linear infinite;

}

.hotelix-loader.success .hotelix-check{

    color:#22c55e;

}

.hotelix-badge{

    display:inline-block;

    padding:8px 12px;

    border-radius:999px;

    background:#ecfdf3;

    color:#15803d;

    font-size:12px;

    font-weight:700;

    letter-spacing:.04em;

    text-transform:uppercase;

    margin-bottom:16px;

}

.hotelix-loader.loading .hotelix-badge{

    background:#EFF6FF;

    color:#1D4ED8;

}

.hotelix-loader.success .hotelix-badge{

    background:#ECFDF3;

    color:#15803D;

}

.hotelix-card h2{

    font-size:24px;

    margin-bottom:10px;

    color:#0f172a;

}

.hotelix-user-message{

    font-size:16px;

    font-weight:600;

    color:#1e293b;

    margin-bottom:14px;

}

.hotelix-meta{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:12px;

}

.hotelix-pill{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:8px 12px;

    border-radius:999px;

    background:#f8fafc;

    color:#334155;

    border:1px solid #e2e8f0;

    font-size:12px;

    font-weight:700;

}

.hotelix-pill-primary{

    background:#e0f2fe;

    color:var(--primary);

}

.hotelix-detail{

    color:#64748b;

    font-size:14px;

    margin-bottom:24px;

}

.hotelix-progress{

    height:6px;

    border-radius:50px;

    overflow:hidden;

    background:#E5E7EB;

}

.hotelix-progress span{

    display:block;

    width:0;

    height:100%;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );

    animation:hotelixBar 2s linear forwards;

}

@keyframes hotelixBar{

    from{

        width:0%;

    }

    to{

        width:100%;

    }

}

@keyframes hotelixSpin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

@keyframes hotelixScale{

    from{

        opacity:0;

        transform:scale(.92);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}
