/*==================================================
        SICAP UBBJ 2026
        Professional Login UI
==================================================*/

/*=========================
        VARIABLES
==========================*/

:root{

    --primary:#111827;
    --primary-dark:#0F172A;

    --gold:#D4AF37;
    --gold-dark:#C49B1E;

    --white:#FFFFFF;

    --bg:#F4F7FB;

    --text:#1F2937;
    --text-light:#6B7280;

    --border:#E5E7EB;

    --radius:22px;

    --shadow:
        0 25px 60px rgba(15,23,42,.18);

}

/*=========================
        RESET
==========================*/

*{

    margin:0;
    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

html,
body{

    width:100%;
    min-height:100%;

}

body{

    font-family:'Poppins',sans-serif;

    background:
    linear-gradient(
        135deg,
        #0B1220 0%,
        #111827 50%,
        #18263D 100%
    );

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

    color:var(--text);

    overflow-x:hidden;

}

/*=========================
        FONDO
==========================*/

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

    radial-gradient(
        circle at top right,
        rgba(212,175,55,.14),
        transparent 25%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(255,255,255,.04),
        transparent 35%
    ),

    radial-gradient(
        circle at center,
        rgba(255,255,255,.02),
        transparent 45%
    );

    pointer-events:none;

}

/*=========================
        CONTENEDOR
==========================*/

.login-wrapper{

    width:100%;

    max-width:1120px;
    min-height:680px;

    display:grid;

    grid-template-columns:55% 45%;

    overflow:hidden;

    border-radius:28px;

    background:#FFFFFF;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:var(--shadow);

    animation:show .7s ease;

}

/*=========================
    PANEL IZQUIERDO
==========================*/

.login-left{

    background:
    linear-gradient(
        160deg,
        #0F172A,
        #111827,
        #18263D
    );

    color:#FFFFFF;

    padding:45px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:45px;

    position:relative;

    overflow:hidden;

}

/*=========================
    MARCA DE AGUA
==========================*/

.login-left::before{

    content:"UBBJ";

    position:absolute;

    top:50%;

    right:-35px;

    transform:translateY(-50%);

    font-size:220px;

    font-weight:800;

    color:rgba(255,255,255,.04);

    pointer-events:none;

}

/*=========================
    PANEL DERECHO
==========================*/

.login-right{

    background:#F5F7FA;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px;

    position:relative;

}

/*=========================
    CONTENIDO IZQUIERDO
==========================*/

.left-content{

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    position:relative;

    z-index:2;

}
/*==================================================
                    LOGO
==================================================*/

.brand{

    max-width:500px;

}

.logo{

    width:90px;

    margin-bottom:25px;

    filter:drop-shadow(0 10px 20px rgba(212,175,55,.25));

}

.brand h1{

    font-size:58px;

    font-weight:800;

    line-height:1;

    letter-spacing:-2px;

    margin-bottom:20px;

    color:#FFFFFF;

}

.brand span{

    color:var(--gold);

}

.brand p{

    font-size:20px;

    line-height:1.8;

    color:#D1D5DB;

}

.subtitle{

    margin-top:12px;

    font-size:16px;

    color:#9CA3AF;

}

.brand::after{

    content:"";

    display:block;

    width:90px;

    height:4px;

    margin-top:30px;

    border-radius:30px;

    background:var(--gold);

}

/*==================================================
                INFORMACIÓN
==================================================*/

.system-info{

    display:flex;

    flex-direction:column;

    gap:22px;

}

.system-item{

    display:flex;

    align-items:flex-start;

    gap:16px;

}

.system-item i{

    font-size:22px;

    color:var(--gold);

    margin-top:2px;

}

.system-item strong{

    display:block;

    color:#FFFFFF;

    font-size:17px;

    margin-bottom:5px;

}

.system-item p{

    color:#CBD5E1;

    line-height:1.6;

}

/*==================================================
                REDES
==================================================*/

.social{

    display:flex;

    gap:16px;

    margin-top:15px;

}

.social a{

    width:50px;

    height:50px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    color:#FFFFFF;

    background:rgba(255,255,255,.06);

    transition:.35s;

}

.social a:hover{

    background:var(--gold);

    color:#111827;

    transform:translateY(-4px);

}

/*==================================================
                FOOTER
==================================================*/

.footer-info{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:25px;

    padding:24px;

    border-radius:18px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

}

.footer-info strong{

    display:block;

    color:#FFFFFF;

    font-size:18px;

    margin-bottom:12px;

}

.footer-info p{

    color:#CBD5E1;

    line-height:1.7;

    font-size:14px;

}

.footer-info small{

    color:#94A3B8;

}

.qr{

    width:95px;

    height:95px;

    border-radius:16px;

    background:#FFFFFF;

    padding:8px;

    flex-shrink:0;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.qr img{

    width:100%;

    height:100%;

    object-fit:contain;

}

/*==================================================
                LOGIN CARD
==================================================*/
.glass-card{

    width:100%;
    max-width:430px;

    background:#FFFFFF;

    border-radius:22px;

    padding:32px;

    border:1px solid #E5E7EB;

    box-shadow:
        0 10px 30px rgba(15,23,42,.06);

}

.login-icon{

    text-align:center;

    margin-bottom:25px;

}

.login-icon img{

    width:130px;

    max-width:100%;

}

.badge-system{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 14px;

    border-radius:25px;

    background:#F3F4F6;

    font-size:13px;

    color:#4B5563;

    font-weight:600;

}

.login-header h2{

    margin-top:18px;

    font-size:46px;

    font-weight:800;

    color:#111827;

}

.login-header p{

    margin:14px 0 28px;

    color:#6B7280;

    line-height:1.7;

}

/*==================================================
                INPUTS
==================================================*/

.input-box{

    margin-bottom:22px;

}

.input-box label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#374151;

}

.input-icon{

    position:relative;

}

.input-icon>i{

    position:absolute;

    left:16px;

    top:50%;

    transform:translateY(-50%);

    color:#9CA3AF;

}

.login-input{

    width:100%;

    height:55px;

    border-radius:14px;

    border:1px solid #D1D5DB;

    padding:0 48px;

    font-size:15px;

    transition:.30s;

    outline:none;

    background:#FFFFFF;

}

.login-input:hover{

    border-color:var(--gold);

}

.login-input:focus{

    border-color:var(--gold);

    box-shadow:0 0 0 4px rgba(212,175,55,.18);

}

/*==================================================
            OJO PASSWORD
==================================================*/

.toggle-password{

    position:absolute;

    right:15px;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    cursor:pointer;

    color:#6B7280;

    font-size:18px;

}

/*==================================================
                OPCIONES
==================================================*/

.login-options{

    margin:18px 0 25px;

}

.remember{

    display:flex;

    align-items:center;

    gap:10px;

    color:#6B7280;

    font-size:14px;

}

/*==================================================
                BOTON
==================================================*/

.btn-login{

    width:100%;

    height:56px;

    border:none;

    border-radius:14px;

    background:linear-gradient(90deg,#CFA72C,#E4C75A);

    color:#111827;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.30s;

}

.btn-login:hover{

    transform:translateY(-2px);

    box-shadow:0 15px 30px rgba(212,175,55,.35);

}

/*==================================================
                DIVISOR
==================================================*/

.login-divider{

    margin:30px 0;

    text-align:center;

    color:#9CA3AF;

    position:relative;

}

.login-divider::before,
.login-divider::after{

    content:"";

    position:absolute;

    top:50%;

    width:35%;

    height:1px;

    background:#E5E7EB;

}

.login-divider::before{

    left:0;

}

.login-divider::after{

    right:0;

}

/*==================================================
            SEGURIDAD
==================================================*/

.security-box{

    display:flex;

    gap:15px;

    align-items:flex-start;

    padding:18px;

    border-radius:16px;

    background:#F8FAFC;

    border:1px solid #E5E7EB;

    transition:.30s;

}

.security-box:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(15,23,42,.08);

}

.security-box i{

    color:var(--gold);

    font-size:22px;

}

.security-box strong{

    display:block;

    margin-bottom:4px;

    color:#111827;

}

.security-box small{

    color:#6B7280;

    line-height:1.6;

}
/*==================================================
            INTRO SCREEN
==================================================*/

.intro-screen{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#0F172A;

    z-index:99999;

    transition:.6s;

}

.intro-screen.hide{

    opacity:0;

    visibility:hidden;

}

.intro-card{

    text-align:center;

}

.intro-logo{

    width:120px;

    margin-bottom:25px;

    animation:logoFloat 2s ease infinite;

}

.intro-card h1{

    color:#FFFFFF;

    font-size:42px;

    font-weight:800;

    letter-spacing:-1px;

}

.intro-card p{

    color:#CBD5E1;

    margin-top:12px;

    font-size:17px;

}

.loader{

    width:65px;

    height:65px;

    border-radius:50%;

    border:4px solid rgba(255,255,255,.15);

    border-top:4px solid #D4AF37;

    margin:35px auto 0;

    animation:spin 1s linear infinite;

}

/*==================================================
            BOTÓN LOADING
==================================================*/

.btn-login{

    position:relative;

    overflow:hidden;

}

.spinner{

    display:none;

    width:22px;

    height:22px;

    border:3px solid rgba(255,255,255,.35);

    border-top:3px solid #111827;

    border-radius:50%;

    animation:spin .8s linear infinite;

}

.btn-login.loading span{

    display:none;

}

.btn-login.loading .spinner{

    display:block;

    margin:auto;

}

/*==================================================
            ANIMACIONES
==================================================*/

.login-wrapper{

    animation:show .7s ease;

}

@keyframes show{

    from{

        opacity:0;

        transform:translateY(25px) scale(.97);

    }

    to{

        opacity:1;

        transform:none;

    }

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes logoFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-10px);

    }

    100%{

        transform:translateY(0);

    }

}

/*==================================================
            SCROLL
==================================================*/

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#D4AF37;

    border-radius:10px;

}

::-webkit-scrollbar-track{

    background:#0F172A;

}

/*==================================================
            RESPONSIVE
==================================================*/

@media(max-width:1200px){

    .login-wrapper{

        grid-template-columns:55% 45%;

    }

}

@media(max-width:992px){

    body{

        padding:20px;

    }

    .login-wrapper{

        grid-template-columns:1fr;

        max-width:550px;

        min-height:auto;

    }

    .login-left{

        display:none;

    }

    .login-right{

        padding:35px 25px;

    }

    .glass-card{

        max-width:100%;

        padding:30px;

    }

}

@media(max-width:576px){

    body{

        padding:15px;

    }

    .glass-card{

        padding:25px;

        border-radius:20px;

    }

    .login-header h2{

        font-size:34px;

    }

    .login-icon img{

        width:110px;

    }

    .login-input{

        height:50px;

    }

    .btn-login{

        height:52px;

    }

}
/*=========================================
        TARJETAS INFORMATIVAS
=========================================*/

.system-info{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

    margin:40px 0;

}

.info-card{

    display:flex;

    align-items:flex-start;

    gap:15px;

    padding:22px;

    border-radius:18px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    transition:.35s;

}

.info-card:hover{

    transform:translateY(-5px);

    border-color:rgba(212,175,55,.35);

    box-shadow:0 15px 35px rgba(0,0,0,.20);

}

.info-icon{

    width:55px;

    height:55px;

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(212,175,55,.15);

    color:#D4AF37;

    font-size:24px;

    flex-shrink:0;

}

.info-content h4{

    color:#FFFFFF;

    font-size:17px;

    margin-bottom:8px;

    font-weight:700;

}

.info-content p{

    color:#CBD5E1;

    font-size:14px;

    line-height:1.6;

}