/*==========================================================
    QRESP
    DADEP LOGIN
==========================================================*/


/*==========================================================
    VARIABLES GLOBALES
==========================================================*/

:root{

    --qr-primary:#005BAC;
    --qr-secondary:#003B71;
    --qr-accent:#00AEEF;

    --qr-white:#FFFFFF;
    --qr-light:#F5F7FA;
    --qr-dark:#1E293B;
    --qr-gray:#64748B;

    --qr-radius:18px;

    --qr-shadow:0 18px 45px rgba(0,0,0,.18);

    --qr-transition:.35s ease;

}


/*==========================================================
    RESET
==========================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}


html{

    scroll-behavior:smooth;

}


body{

    font-family:'Montserrat',sans-serif;
    background:var(--qr-light);
    color:var(--qr-dark);
    overflow-x:hidden;

}


img{

    display:block;
    max-width:100%;

}


a{

    text-decoration:none;

}


button,
input{

    font-family:inherit;

}

/*==========================================================
    ESTRUCTURA PRINCIPAL
==========================================================*/

.qr-login{

    width:100%;
    min-height:100vh;

}


.qr-login-wrapper{

    position:relative;

    width:100%;
    min-height:100vh;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

}

/*==========================================================
    FONDO INSTITUCIONAL
==========================================================*/

.qr-login-background{

    position:absolute;

    inset:0;

    background-image:url("../img/login-bg.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    z-index:1;

}


.qr-login-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(0, 46, 95, .88),
        rgba(0, 91, 172, .72),
        rgba(0, 174, 239, .45)
    );

    backdrop-filter:blur(2px);

}

/*==========================================================
    CONTENEDOR PRINCIPAL
==========================================================*/

.qr-login-container{

    position:relative;

    z-index:10;

    width:min(1400px,92%);

    margin:auto;

    display:grid;

    grid-template-columns:1.2fr .8fr;

    align-items:center;

    gap:80px;

}

/*==========================================================
    INFORMACIÓN INSTITUCIONAL
==========================================================*/

.qr-login-info{

    display:flex;
    flex-direction:column;
    justify-content:center;

    max-width:720px;

}


.qr-login-info img{

    width:220px;

    margin-bottom:30px;

}


.qr-login-tag{

    display:inline-flex;
    align-items:center;

    width:max-content;

    padding:10px 22px;

    margin-bottom:25px;

    border-radius:50px;

    background:rgba(255,255,255,.15);

    color:var(--qr-white);

    font-size:.95rem;

    font-weight:600;

    letter-spacing:.5px;

    backdrop-filter:blur(10px);

}


.qr-login-info h1{

    margin-bottom:30px;

    color:var(--qr-white);

    font-size:3.6rem;

    font-weight:800;

    line-height:1.15;

}


.qr-login-info p{

    max-width:650px;

    color:rgba(255,255,255,.90);

    font-size:1.15rem;

    line-height:1.9;

}

/*==========================================================
    TARJETA DE ACCESO
==========================================================*/

.qr-login-card{

    position:relative;

    z-index:20;

    width:100%;
    
    max-width:480px;

    padding:22px;

    border-radius:24px;

    background:rgba(12,35,64,.42);

    border:1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(26px);

    -webkit-backdrop-filter:blur(26px);

    box-shadow:var(--qr-shadow);

}

/*==========================================================
    CABECERA
==========================================================*/

.qr-card-header{

    margin-bottom:35px;

}


.qr-card-header h2{

    margin-bottom:12px;

    color:var(--qr-white);

    font-size:2rem;

    font-weight:700;

}


.qr-card-header p{

    color:rgba(255,255,255,.85);

    line-height:1.7;

    font-size:1rem;

}

/*==========================================================
    FORMULARIO
==========================================================*/

.qr-login-form{

    display:flex;

    flex-direction:column;

    gap:25px;

}


.qr-form-group{

    display:flex;

    flex-direction:column;

    gap:10px;

}


.qr-form-group label{

    color:var(--qr-white);

    font-size:.95rem;

    font-weight:600;

}

/*==========================================================
    CAMPOS DEL FORMULARIO
==========================================================*/

.qr-input{

    display:flex;
    align-items:center;

    gap:14px;

    padding:0 18px;

    height:58px;

    border-radius:14px;

    background:rgba(255,255,255,.15);

    border:1px solid rgba(255,255,255,.25);

    transition:var(--qr-transition);

}


.qr-input:focus-within{

    border-color:var(--qr-accent);

    background:rgba(255,255,255,.20);

    box-shadow:0 0 0 4px rgba(0,174,239,.20);

}


.qr-input i{

    color:rgba(255,255,255,.90);

    font-size:1.1rem;

}


.qr-input input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    color:var(--qr-white);

    font-size:1rem;

}


.qr-input input::placeholder{

    color:rgba(255,255,255,.60);

}

/*==========================================================
    OPCIONES
==========================================================*/

.qr-login-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

}


.qr-remember{

    display:flex;

    align-items:center;

    gap:10px;

    color:var(--qr-white);

    cursor:pointer;

}


.qr-login-options a{

    color:var(--qr-white);

    font-size:.95rem;

    transition:.3s;

}


.qr-login-options a:hover{

    color:var(--qr-accent);

}

/*==========================================================
    BOTÓN INGRESAR
==========================================================*/

.qr-btn-login{

    width:100%;

    height:60px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    margin-top:10px;

    border:none;

    border-radius:14px;

    background:#0B4D8C;

    color:#FFFFFF;

    font-size:1rem;

    font-weight:700;

    letter-spacing:.5px;

    cursor:pointer;

    transition:.30s ease;

    box-shadow:0 10px 25px rgba(0,0,0,.18);

}

.qr-btn-login:hover{

    background:#1B75BC;

    box-shadow:0 12px 30px rgba(0,0,0,.22);

}

/*==========================================================
    PIE
==========================================================*/

.qr-card-footer{

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-top:15px;

    color:rgba(255,255,255,.85);

    line-height:1.6;

    font-size:.90rem;

}


.qr-card-footer i{

    color:#ffffff;

    font-size:1.2rem;

    margin-top:2px;

}

/*==========================================================
    BOTÓN INGRESAR
==========================================================*/

/*==========================================================
    BOTÓN INGRESAR
==========================================================*/

.qr-btn-login{

    width:100%;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    margin-top:10px;

    border:none;
    border-radius:14px;

    background:#0B4D8C !important;
    background-image:none !important;

    color:#FFFFFF;

    font-size:1rem;
    font-weight:700;

    cursor:pointer;

    transition:.3s ease;

    box-shadow:0 10px 25px rgba(0,0,0,.20);

}

.qr-btn-login:hover{

    background:#068de7 !important;
    background-image:none !important;

}

.qr-btn-login:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 40px rgba(0,91,172,.45);

}


.qr-btn-login:active{

    transform:translateY(0);

}

/*======================================================================
    MÓDULO 03 | HERO
======================================================================*/

.dashboard-hero{

    margin:32px;

    padding:48px;

    background:linear-gradient(135deg,#0B63CE 0%,#1798E5 100%);
    border-radius:24px;

    overflow:hidden;

    position:relative;

    box-shadow:0 20px 45px rgba(11,99,206,.18);

}

.dashboard-hero::before{

    content:"";

    position:absolute;

    width:420px;
    height:420px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    top:-180px;
    right:-120px;

}

.dashboard-hero::after{

    content:"";

    position:absolute;

    width:260px;
    height:260px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

    bottom:-140px;
    left:-80px;

}

.hero-content{

    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:60px;

}

.hero-info{

    flex:1;

    max-width:700px;

}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:10px 20px;

    background:rgba(255,255,255,.15);

    border:1px solid rgba(255,255,255,.25);

    border-radius:50px;

    color:#ffffff;

    font-size:14px;

    font-weight:600;

    backdrop-filter:blur(12px);

}

.hero-title{

    margin-top:24px;

    margin-bottom:18px;

    color:#ffffff;

    font-size:42px;

    font-weight:700;

    line-height:1.2;

}

.hero-description{

    color:rgba(255,255,255,.90);

    font-size:17px;

    line-height:1.8;

    max-width:620px;

}

.hero-actions{

    display:flex;

    gap:18px;

    margin-top:40px;

}

.btn-primary{

    display:inline-flex;

    align-items:center;

    gap:12px;

    padding:16px 30px;

    background:#ffffff;

    color:#0B63CE;

    border-radius:14px;

    text-decoration:none;

    font-weight:600;

    transition:.30s;

}

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 30px rgba(0,0,0,.18);

}

.btn-secondary{

    display:inline-flex;

    align-items:center;

    gap:12px;

    padding:16px 30px;

    border:2px solid rgba(255,255,255,.25);

    color:#ffffff;

    border-radius:14px;

    text-decoration:none;

    font-weight:600;

    transition:.30s;

}

.btn-secondary:hover{

    background:rgba(255,255,255,.12);

    transform:translateY(-4px);

}

.hero-image{

    flex:1;

    display:flex;

    justify-content:flex-end;

    align-items:center;

}

.hero-illustration{

    width:100%;

    max-width:470px;

    height:auto;

    display:block;

}

@media(max-width:1200px){

    .dashboard-hero{

        padding:40px;

    }

    .hero-title{

        font-size:36px;

    }

}

@media(max-width:992px){

    .hero-content{

        flex-direction:column;

        text-align:center;

    }

    .hero-info{

        max-width:100%;

    }

    .hero-actions{

        justify-content:center;

        flex-wrap:wrap;

    }

    .hero-image{

        justify-content:center;

    }

}

@media(max-width:576px){

    .dashboard-hero{

        margin:20px;

        padding:30px;

    }

    .hero-title{

        font-size:30px;

    }

    .hero-description{

        font-size:15px;

    }

    .hero-actions{

        flex-direction:column;

        width:100%;

    }

    .btn-primary,
    .btn-secondary{

        justify-content:center;

        width:100%;

    }

}

/*==================================================
MENSAJES DEL LOGIN
==================================================*/

/*==================================================
MENSAJES DEL LOGIN
==================================================*/

.qr-login-message{

    display:none;

    align-items:center;
    justify-content:center;
    gap:10px;

    margin-top:18px;

    padding:14px 18px;

    min-height:52px;

    border-radius:12px;

    font-family:'Montserrat',sans-serif;
    font-size:.95rem;
    font-weight:600;

    text-align:center;

    transition:.30s ease;

}

.qr-login-message.show{

    display:flex;

}

.qr-login-message.success{

    background:rgba(34,197,94,.15);

    border:1px solid rgba(34,197,94,.35);

    color:#D8FFE4;

}

.qr-login-message.error{

    background:rgba(239,68,68,.15);

    border:1px solid rgba(239,68,68,.35);

    color:#FFD7D7;

}

/*==================================================
MOSTRAR / OCULTAR CONTRASEÑA
==================================================*/

.qr-input{

    position:relative;

}

.qr-password-toggle{

    position:absolute;

    right:18px;

    top:50%;

    transform:translateY(-50%);

    display:flex;

    align-items:center;

    justify-content:center;

    width:34px;

    height:34px;

    border:none;

    background:transparent;

    color:#8CA0B8;

    cursor:pointer;

    transition:.25s;

}

.qr-password-toggle:hover{

    color:#0B4D8C;

}

.qr-password-toggle i{

    font-size:16px;

}

/*==================================================
AUTOFILL GOOGLE CHROME
==================================================*/

.qr-input input:-webkit-autofill,
.qr-input input:-webkit-autofill:hover,
.qr-input input:-webkit-autofill:focus,
.qr-input input:-webkit-autofill:active{

    -webkit-text-fill-color: #FFFFFF !important;

    -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,.10) inset !important;

    box-shadow: 0 0 0px 1000px rgba(255,255,255,.10) inset !important;

    transition: background-color 9999s ease-in-out 0s;

    caret-color: #FFFFFF;

}

/*==========================================================
    RESPONSIVE BREAKPOINTS UNIFICADOS (DADEP-LOGIN)
==========================================================*/

/* 1. DESKTOP LARGE (1440px) */
@media (max-width: 1440px) {
    .qr-login-card {
        max-width: 480px;
    }
}

/* 2. TABLET HORIZONTAL / DESKTOP SMALL (980px) */
@media (max-width: 980px) {
    .qr-login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 35px !important;
        width: 100% !important;
        padding: 40px 20px !important;
    }

    .qr-login-info {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .qr-login-info img {
        margin: 0 auto 15px auto !important;
    }

    .qr-login-info h1 {
        font-size: 2rem !important;
        line-height: 1.25 !important;
    }

    .qr-login-info p {
        font-size: 1rem !important;
        margin: 0 auto !important;
    }

    .qr-login-card {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
}

/* 3. TABLET PORTRAIT (760px) */
@media (max-width: 760px) {
    .qr-login-info h1 {
        font-size: 1.7rem !important;
    }

    .qr-login-info p {
        font-size: 0.92rem !important;
    }

    .qr-login-card {
        padding: 30px 22px !important;
    }
}

/* 4. PHABLET / MOBILE LARGE (570px) */
@media (max-width: 570px) {
    .qr-login-container {
        padding: 30px 15px !important;
    }

    .qr-login-info h1 {
        font-size: 1.5rem !important;
    }

    .qr-input input {
        height: 50px !important;
        font-size: 16px !important; /* Previene auto-zoom molesto en iOS */
    }

    .qr-btn-login {
        min-height: 50px !important;
        font-size: 0.95rem !important;
    }
}

/* 5. MOBILE MEDIUM (480px) */
@media (max-width: 480px) {
    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    html, body {
        overflow-x: hidden !important;
    }

    .qr-login-container {
        padding: 20px 12px !important;
    }

    .qr-login-card {
        padding: 22px 16px !important;
    }

    .qr-login-options {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
}

/* 6. MOBILE SMALL (320px) */
@media (max-width: 320px) {
    .qr-login-card {
        padding: 16px 12px !important;
    }

    .qr-login-info h1 {
        font-size: 1.25rem !important;
    }

    .qr-card-header h2 {
        font-size: 1.15rem !important;
    }

    .qr-input input {
        padding-left: 36px !important;
    }
}