* {
    box-sizing: border-box;
}

body {
    font-family: 'Overpass', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    color: #1b262c;
}

#contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 30px;
    background-image:
        linear-gradient(
            rgba(15, 50, 65, 0.35),
            rgba(15, 50, 65, 0.35)
        ),
        url(../av/fondoazul.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#contenedorcentrado {
    display: flex;
    width: 900px;
    max-width: 100%;
    min-height: 520px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 20px;
    box-shadow:0 20px 50px rgba(0, 0, 0, 0.30);
}

#izquierda {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 45px;
    background: rgba(20, 70, 80, 0.35);
}

.image-container {
    width: 220px;
    margin-bottom: 25px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow:0 10px 25px rgba(0, 0, 0, 0.25);
}

.titulo {
    margin-top: 10px;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.subtitulo {
    margin-top: 5px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.80);
}

#login {
    width: 52%;
    padding: 50px 45px;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.30);
    overflow: hidden;
}

.login-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #263238;
}

.login-header p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #777;
}

.input-group-modern {
    margin-bottom: 20px;
}

.input-group-modern label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #37474f;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}


.input-container > i {
    position: absolute;
    left: 15px;
    color: #3095b1;
    font-size: 16px;
    z-index: 2;
}

.input-container input {
    width: 100%;
    height: 48px;
    padding: 8px 45px;
    border: 1px solid #d8dfe3;
    border-radius: 8px;
    outline: none;
    background: #f8fafb;
    color: #263238;
    font-size: 14px;
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        background 0.25s;
}

.input-container input::placeholder {
    color: #a0a8ad;
}


.input-container input:focus {
    background: #ffffff;
    border-color: #3095b1;
    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.12);
}

/* ======== MOSTRAR CONTRASEÑA============== */

.toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7b858a;
    font-size: 17px;
    transition: color 0.2s;
}

.toggle-btn:hover {
    color: #3095b1;
}

.toggle-btn i {
    pointer-events: none;
}

#btningresar {
    width: 100%;
    height: 48px;
    margin-top: 5px;
    border: none;
    border-radius: 8px;
    background: #3095b1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
        background 0.25s,
        transform 0.2s,
        box-shadow 0.25s;
}

#btningresar:hover {
    background: #4ab6d4;
    transform: translateY(-1px);
    box-shadow:0 7px 15px rgba(25, 135, 84, 0.25);
}

#btningresar:active {
    transform: translateY(0);
}


/* =========================================
   RECUPERAR CONTRASEÑA
========================================= */

.recuperar {
    text-align: center;
    margin-top: 20px;
}

.recuperar a {
    color: #3095b1;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}


.recuperar a:hover {
    color: #17408b;
    text-decoration: underline;
}

.recuperar i {
    margin-right: 5px;
}

/* =========================================
   PNOTIFY
========================================= */

/* Contenedor principal */
.ui-pnotify-container {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

.ui-pnotify-title,
.ui-pnotify-text {
    color: #ffffff !important;
}

.ui-pnotify-title {
    font-weight: 700 !important;
}

.ui-pnotify-text {
    font-size: 14px !important;
}

.ui-pnotify-container.alert-danger {
    background-color: #dc3545 !important;
}

.ui-pnotify-container.alert-success {
    background-color: #39be61 !important;
}

/* =========================================================
   RESPONSIVE - CELULAR
========================================================= */

@media (max-width: 700px) {

    /* CONTENEDOR GENERAL */
    #contenedor {
        min-height: 100vh;
        padding: 12px;
        align-items: center;
    }


    /* TARJETA */
    #contenedorcentrado {
        width: 100%;
        max-width: 430px;

        min-height: auto;

        flex-direction: column;

        border-radius: 16px;
    }


    /* =====================================================
       PARTE SUPERIOR
    ===================================================== */

    #izquierda {
        width: 100%;

        padding: 16px 20px 14px;

        flex-shrink: 0;
    }


    /* IMAGEN / LOGO */
    .image-container {
        width: 105px;

        margin-bottom: 8px;
    }

    .image-container img {
        border-radius: 10px;

        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.20);
    }


    /* TÍTULO */
    .titulo {
        margin-top: 3px;

        font-size: 25px;
        line-height: 1.1;

        letter-spacing: 0.5px;
    }


    /* SUBTÍTULO */
    .subtitulo {
        margin-top: 4px;

        font-size: 12px;
        line-height: 1.3;
    }


    /* =====================================================
       LOGIN
    ===================================================== */

    #login {
        width: 100%;

        padding: 22px 20px 20px;
    }


    /* CABECERA LOGIN */
    .login-header {
        margin-bottom: 18px;
    }


    .login-icon {
        width: 44px;
        height: 44px;

        margin-bottom: 8px;
    }


    .login-header h2 {
        font-size: 22px;
        line-height: 1.2;
    }


    .login-header p {
        margin-top: 4px;

        font-size: 12px;
        line-height: 1.3;
    }


    /* =====================================================
       CAMPOS
    ===================================================== */

    .input-group-modern {
        margin-bottom: 13px;
    }


    .input-group-modern label {
        margin-bottom: 5px;

        font-size: 12px;
    }


    .input-container input {
        height: 42px;

        padding-left: 40px;
        padding-right: 40px;

        font-size: 13px;
    }


    .input-container > i {
        left: 13px;

        font-size: 15px;
    }


    .toggle-btn {
        right: 13px;

        font-size: 16px;
    }


    /* =====================================================
       BOTÓN INGRESAR
    ===================================================== */

    #btningresar {
        height: 42px;

        margin-top: 3px;

        font-size: 13px;
    }


    /* =====================================================
       RECUPERAR CONTRASEÑA
    ===================================================== */

    .recuperar {
        margin-top: 14px;
    }


    .recuperar a {
        font-size: 12px;
    }
}

/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */
@media (max-width: 420px) {

    #contenedor {
        padding: 8px;
    }

    #contenedorcentrado {
        width: 90%;
        max-width: 380px;
        margin: 0 auto;
        border-radius: 13px;
    }

    #izquierda {
        width: 100%;
        padding: 12px 15px 10px;
    }

    .image-container {
        width: 85px;
        margin-bottom: 5px;
    }

    .titulo {
        margin-top: 2px;
        font-size: 21px;
    }

    .subtitulo {
        margin-top: 3px;
        font-size: 11px;
    }

    #login {
        width: 100%;
        padding: 17px 16px 16px;
    }

    .login-header {
        margin-bottom: 14px;
    }

    .login-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 6px;
    }

    .login-header h2 {
        font-size: 19px;
    }

    .login-header p {
        margin-top: 3px;
        font-size: 11px;
    }

    .input-group-modern {
        margin-bottom: 10px;
    }

    .input-group-modern label {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .input-container input {
        height: 40px;
        font-size: 12px;
    }

    #btningresar {
        height: 40px;
        font-size: 12px;
    }

    .recuperar {
        margin-top: 11px;
    }

    .recuperar a {
        font-size: 11px;
    }
}


/* RECUPERACIÓN DE CONTRASEÑA - DISEÑO COMPACTO */

#modalRecuperarPassword .modal-dialog {
    max-width: 440px;
}

#modalRecuperarPassword .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* ENCABEZADO */
#modalRecuperarPassword .modal-header {
    padding: 14px 18px;
}

#modalRecuperarPassword .modal-title {
    font-size: 16px;
    font-weight: 600;
}

#modalRecuperarPassword .modal-title i {
    margin-right: 6px;
    color: #3095b1;
}

#textoPaso {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #777;
}

/* CUERPO */
#modalRecuperarPassword .modal-body {
    padding: 15px 18px;
}

/* BLOQUES */
.bloque-recuperacion {
    margin: 0;
}

/* TÍTULOS */
.recuperacion-titulo {
    margin-bottom: 10px;
}

.recuperacion-titulo h6 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.recuperacion-titulo p {
    margin: 3px 0 0 25px;
    font-size: 11px;
    line-height: 1.35;
    color: #777;
}

/* NÚMERO DEL PASO */
.numero-paso {
    width: 21px;
    height: 21px;
    min-width: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #3095b1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* INPUTS */
#modalRecuperarPassword .input-group-modern {
    margin-bottom: 9px;
}

#modalRecuperarPassword .input-group-modern label {
    margin-bottom: 4px;
    font-size: 11px;
}

#modalRecuperarPassword .input-container {
    height: 36px;
}

#modalRecuperarPassword .input-container input {
    height: 36px;
    font-size: 12px;
}

/* BOTONES */
.btn-recuperacion {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 6px;
    background: #3095b1;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
}

.btn-recuperacion:hover:not(:disabled) {
    background: #267f97;
    transform: translateY(-1px);
}

.btn-recuperacion:active:not(:disabled) {
    transform: translateY(0);
}

/* BOTONES BLOQUEADOS */
.btn-recuperacion:disabled {
    background: #d8dfe2;
    color: #8a9499;
    cursor: not-allowed;
    opacity: 1;
}

/* INPUTS BLOQUEADOS */
#modalRecuperarPassword input:disabled {
    background: #f1f3f4;
    color: #8a9499;
    cursor: not-allowed;
}

/* SEPARADORES */
.separador-recuperacion {
    height: 1px;
    margin: 13px 0;
    background: #e7eaec;
}

/* PIE */
#modalRecuperarPassword .modal-footer {
    padding: 9px 18px;
    border-top: 1px solid #edf0f2;
}

/* MODO NOCHE */
html.modo-noche #modalRecuperarPassword .modal-content {
    background: #17262d;
    color: #fff;
}

html.modo-noche #modalRecuperarPassword .modal-header {
    border-bottom-color: #294049;
}

html.modo-noche #modalRecuperarPassword .modal-footer {
    border-top-color: #294049;
}

html.modo-noche #textoPaso,
html.modo-noche .recuperacion-titulo p {
    color: #9fb0b7;
}

html.modo-noche .separador-recuperacion {
    background: #294049;
}

html.modo-noche #modalRecuperarPassword input:disabled {
    background: #22343b;
    color: #81949c;
}

html.modo-noche .btn-recuperacion:disabled {
    background: #294049;
    color: #71858d;
}

/* =========================================================
   RESPONSIVE - MODAL RECUPERACIÓN
========================================================= */

@media (max-width: 420px) {

    #modalRecuperarPassword .modal-dialog {
        width: 90%;
        max-width: 380px;
        margin: 1rem auto;
    }

    #modalRecuperarPassword .modal-content {
        border-radius: 12px;
    }

    #modalRecuperarPassword .modal-header {
        padding: 12px 15px;
    }

    #modalRecuperarPassword .modal-title {
        font-size: 15px;
    }

    #textoPaso {
        font-size: 10px;
    }

    #modalRecuperarPassword .modal-body {
        padding: 13px 15px;
    }

    .recuperacion-titulo {
        margin-bottom: 9px;
    }

    .recuperacion-titulo h6 {
        font-size: 13px;
    }

    .recuperacion-titulo p {
        margin-left: 24px;
        font-size: 10px;
    }

    .numero-paso {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 10px;
    }

    #modalRecuperarPassword .input-group-modern {
        margin-bottom: 8px;
    }

    #modalRecuperarPassword .input-group-modern label {
        font-size: 10px;
    }

    #modalRecuperarPassword .input-container,
    #modalRecuperarPassword .input-container input {
        height: 35px;
    }

    #modalRecuperarPassword .input-container input {
        font-size: 11px;
    }

    .btn-recuperacion {
        height: 34px;
        font-size: 10px;
    }

    .separador-recuperacion {
        margin: 11px 0;
    }

    #modalRecuperarPassword .modal-footer {
        padding: 8px 15px;
    }
}