﻿body {
    height: 100%;
    margin: 0;
    font-family: "Poppins", sans-serif !important;
}

    body.body-bg-img {
        min-height: 100vh;
        position: relative;
        background-image: url('../assets/img/fondo-pc.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow-x: hidden;
    }



.ayuda{
    margin-bottom: 0%;
    font-size: 13px;
}


.degradado-azul {
    background: linear-gradient(90deg, #1c3d7d 0%, #0272a1 50%, #1c3d7d 100%);
}



.logo-dtic-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all .3s ease;
}

    .logo-dtic-fixed:hover {
        transform: translateY(-2px);
    }

    .logo-dtic-fixed img {
        height: 40px;
        width: auto;
        display: block;
    }



/* Main Container */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor  del login */
.login-card {
    background-color: #ffffff;
    backdrop-filter: blur(14px);
    border-radius: 30px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 10px 25px rgba(37, 99, 235, 0.1), 0 20px 40px rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 10px 25px rgba(37, 99, 235, 0.1), 0 20px 40px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    max-width: 1000px;
    display: flex;
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease;
    will-change: transform, box-shadow;
}

    .login-card:hover,
    .login-card:focus-within {
        transform: translateY(-8px);
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10), 0 18px 45px rgba(37, 99, 235, 0.18), 0 32px 65px rgba(15, 23, 42, 0.14);
    }


/* Left Side - Form */
.login-form-side {
    flex: 1;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-section {
    text-align: center;
    margin-bottom: 5px;
}

.logo-minerd {
    max-width: 240px;
    height: auto;
    margin: 0 auto;
}

.system-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3768;
    line-height: 1.4;
    margin-bottom: 30px;
    margin-top: 10px;
}


.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 7px auto 0;
    text-align: center;
    line-height: 1.3;
    max-width: 470px;
}



.login-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #1e3768;
    margin: 7px auto 0;
    text-align: center;
    line-height: 1.3;
    max-width: 470px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.input-group-custom {
    position: relative;
}

    .input-group-custom i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #1e3768;
        font-size: 18px;
        z-index: 2;
    }

.form-control-custom {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all .3s ease;
    background: #f8f9fa;
}

    .form-control-custom:focus {
        outline: none;
        border-color: #55c2e5;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(85,194,229,0.1);
    }

    .form-control-custom::placeholder {
        color: #aaa;
    }

.btn-primary-bs {
    border-radius: 30px !important;
    background-size: 200% auto;
    background-position: left center;
    border-color: transparent !important;
    color: white;
    transition: background-position 0.5s ease-in-out;
}

.btn-primary-sigme {
    border-radius: 30px !important;
    background-image: linear-gradient(to right, #0087bf 0%, #1e3768 51%, #0087bf 100%) !important;
    background-size: 200% auto;
    background-position: left center;
    border-color: transparent !important;
    color: white;
    transition: background-position 0.5s ease-in-out;
}

    .btn-primary-sigme:active {
        background-position: right center;
        transform: scale(0.98);
        border-color: transparent !important;
    }

    .btn-primary-sigme:hover,
    .btn-primary-sigme:focus {
        background-position: right center;
        border-color: transparent !important;
        color: white;
        text-decoration: none;
    }

    .btn-primary-sigme:disabled {
        border-color: transparent !important;
        background-position: left center;
        color: white;
        opacity: 0.6;
        cursor: not-allowed;
    }

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* Version badge */
.version {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 992px) {
    body.body-bg-img {
        background-image: url('../assets/img/fondo-tablet.png');
        background-position: center;
    }

    .login-form-side {
        padding: 40px 30px;
    }

    .login-card {
        max-width: 500px;
    }
}

@media (max-width: 820px) {
    body.body-bg-img {
        background-image: url('../assets/img/fondo-tablet-peq.png');
        background-position: center;
    }
}

@media (max-width: 1025px) {
    body.body-bg-img {
        background-image: url('../assets/img/fondo-tablet-peq.png');
        background-position: center;
    }
}

    @media (max-width: 768px) {
        body.body-bg-img {
            background-image: url('../assets/img/fondo-tablet-peq.png');
            background-position: center;
        }

        .login-container {
            padding: 15px;
        }

        .login-form-side {
            padding: 35px 25px;
        }

        .logo-dtic-fixed img {
            display: none;
        }

        .logo-minerd {
            max-width: 200px;
        }

        .system-title {
            font-size: 13px;
        }

        .login-title {
            font-size: 24px;
        }

        .login-subtitle {
            font-size: 13px;
        }

        .form-control-custom {
            font-size: 14px;
            padding: 12px 18px 12px 45px;
        }

        .input-group-custom i {
            left: 15px;
            font-size: 16px;
        }

        .btn-login {
            padding: 13px;
            font-size: 15px;
        }
    }

    @media (max-width: 600px) {
        body.body-bg-img {
            background-image: url('../assets/img/fondo-celular.png');
            background-position: center;
        }

        .login-form-side {
            padding: 30px 20px;
        }

        .logo-dtic-fixed {
            display: none;
        }

            .logo-dtic-fixed img {
                height: 50px;
            }

        .logo-minerd {
            max-width: 180px;
        }

        .system-title {
            font-size: 12px;
        }

        .login-title {
            font-size: 22px;
        }

        .login-subtitle {
            font-size: 12px;
            margin-bottom: 25px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-label {
            font-size: 13px;
        }

        .form-control-custom {
            font-size: 13px;
            padding: 11px 16px 11px 42px;
        }

        .input-group-custom i {
            left: 13px;
            font-size: 15px;
        }
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
    }

    .version {
        font-size: 10px;
        padding: 4px 12px;
        bottom: 10px;
        right: 10px;
    }



    @media (max-width: 400px) {
        .login-form-side {
            padding: 25px 15px;
        }

        .logo-minerd {
            max-width: 160px;
        }

        .system-title {
            font-size: 11px;
        }

        .login-title {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .login-subtitle {
            font-size: 11px;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-label {
            font-size: 12px;
            margin-bottom: 6px;
        }

        .form-control-custom {
            font-size: 12px;
            padding: 10px 14px 10px 38px;
            border-radius: 10px;
        }

        .input-group-custom i {
            left: 12px;
            font-size: 14px;
        }

        .btn-login {
            padding: 11px;
            font-size: 13px;
            border-radius: 10px;
        }

        .logo-dtic-fixed {
            display: none;
        }
    }

    @media (max-width: 380px) {
        .version {
            display: none;
        }
    }
    /* Suavidad global y accesibilidad */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .form-control-custom, .btn-login, .logo-dtic-fixed, .login-card {
        transition: all .3s ease;
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: .01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: .01ms !important;
        }
    }

    @media (hover: none) and (pointer: coarse) {
        .btn-login:hover {
            transform: none;
        }

        .logo-dtic-fixed:hover {
            transform: none;
        }

        .btn-login:active {
            transform: scale(0.98);
        }

        .login-card:hover {
            transform: none;
            box-shadow: 0 20px 60px rgba(30,55,104,0.15);
        }
    }

    .swal2-container {
        margin-right: 16px;
    }

    @media (min-width: 1600px) {
        .swal2-container {
            margin-right: 4px;
        }
    }

  
    /*
@media (max-width: 380px) {
    .banner-img {
        max-width: 96vw;
    }
}

.banner-img {
    width: 100%;
    max-width: 1100px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    height: auto;
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .banner-img {
        max-width: 90vw;
    }
}

@media (max-width: 710px) {
    .banner-img {
        max-width: 92vw;
    }
}*/

    .modal-mensaje-inicial .modal-title {
        width: 100%
    }
    /* Fondo del modal */
    #btnTutorial {
        position: fixed;
        top: 20px;
        right: 20px;
        /*background-color: #004aad;*/ /* azul institucional */
        background-color: #aa2020; /* azul institucional */
        color: white;
        border: none;
        border-radius: 40px;
        padding: 12px 18px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        z-index: 10000;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
    }

        #btnTutorial:hover {
            background-color: #aa2020;
            transform: scale(1.15);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
        }

        #btnTutorial i {
            font-size: 18px;
        }

        #btnTutorial .btn-text {
            display: inline-block;
        }

    /* --- MODAL --- */
    .modal-banner-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .modal-banner-content {
        display: flex;
        justify-content: center;
        align-items: center;
        animation: zoomIn 0.4s ease;
    }

    /* --- VIDEO --- */
    .banner-img {
        width: 100%;
        max-width: 1100px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        height: auto;
        transition: transform 0.3s ease-in-out;
    }

    /* Responsivo */
    @media (max-width: 992px) {
        .banner-img {
            max-width: 90vw;
        }
    }

    @media (max-width: 710px) {
        .banner-img {
            max-width: 92vw;
        }
    }

    @media (max-width: 380px) {
        #btnTutorial {
            padding: 10px 12px;
            border-radius: 30px;
            top: 15px;
            right: 15px;
        }

            #btnTutorial .btn-text {
                display: none; /* solo icono en pantallas pequeñas */
            }

        .banner-img {
            max-width: 96vw;
        }
    }

    /* Animación */
    @keyframes zoomIn {
        from {
            transform: scale(0.7);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

