:root {
    --aside-width: 400px;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html * {
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

a {
    color: #293c76;
    text-decoration: underline;
}

button {
    background-color: unset;
    color: unset;
    border: none;
    cursor: pointer;
}

/* login ----------- */
.content-main {
    width: 100%;
    height: 100dvh;
    display: flex;
    overflow: hidden;
}

.btn-animation-stop {
    position: fixed;
    bottom: 3px;
    left: 3px;

    animation: btnAnimationStop 0.3s;
    animation-delay: 3s;
    animation-fill-mode: both;
}

@keyframes btnAnimationStop {
    to {
        opacity: 0;
    }
}

.btn-animation-stop img {
    width: 60px;
}

.present-tbj {
    min-width: calc(100% - var(--aside-width));
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-box {
    width: 350px;
    height: 350px;
    border-radius: 1000px;
    border: 5px #152249 solid;
    position: relative;
}

.isotipo {
    width: 200px;
    padding-top: 40px;
}

.logo-circle {
    width: 300px;
}

.isotipo,
.logo-circle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.tbj-title {
    width: 400px;
    margin-top: 30px;
}

.box-title-tbj {
    text-align: right;
    color: #345183;
}

.text-by {
    font-size: 12px;
    font-weight: lighter;
}

.text-bienvenidos {
    color: #2b4168;
    font-size: 24px;
    margin-top: 40px;
    font-weight: lighter;
    text-align: center;
    padding: 0px 10px;
}

.aside-tbj {
    width: var(--aside-width);
    min-width: var(--aside-width);
    background-color: rgb(216 216 224 / 50%);

    position: relative;
    display: grid;
    place-items: center;
    padding: 40px;
}

.box-logo-org {
    width: 100px;
    height: 100px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #a7aeb9;
    border-radius: 1000px;
    display: grid;
    place-items: center;
    margin-bottom: 40px;
    background-color: #fff;
}

.box-logo-org img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.text-iniciar {
    font-size: 24px;
    color: #345183;
    font-weight: lighter;
    text-align: center;
    margin-bottom: 40px;
}

.input-item {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #768192;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.2s;
    color: #434549;
}

.input-item:focus-within {
    transform: scale(1.03);
    border: 1px solid #152249;
}

.icon.icon-box {
    width: 50px;
    height: 50px;
    padding: 8px;
    background-color: #fff;
    display: grid;
    place-items: center;
}

.icon.icon-box img {
    width: 100%;
    filter: brightness(0) saturate(100%) invert(32%) sepia(3%) saturate(1465%) hue-rotate(180deg) brightness(88%) contrast(86%);
}

.input-item:focus-within .icon.icon-box img {
    filter: brightness(0) saturate(100%) invert(7%) sepia(58%) saturate(3098%) hue-rotate(219deg) brightness(98%) contrast(91%);
}

.input-item input {
    width: 100%;
    height: 50px;
    border: none;
    padding: 0px 5px;
}

.input-item input:focus {
    outline: none;
}

.button-item {
    margin-bottom: 15px;
}

.button-item button {
    width: 100%;
    height: 50px;
    color: #fff;
    background-color: #293c76;
    border-radius: 8px;
}

.box-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
}


/* animation enter tabantaj ---- */
body.animate-active {
    cursor: pointer;
}

.btn-animation-stop {
    display: none;
}

.animate-active .btn-animation-stop {
    display: block;
}

.animate-active .present-tbj {
    animation: fadeInContentMain 1s;
    animation-fill-mode: both;
    animation-delay: 3s;
}

.animate-active .logo-box {
    animation: logoBox 3s;
    animation-fill-mode: both;
    animation-delay: 3s;
}

.animate-active .isotipo {
    animation: isotipo 0.6s;
}

.logo-circle {
    animation: logoCircle 60s linear infinite;
}

.animate-active .box-circle-color {
    animation: boxCircleColor 1s;
    animation-fill-mode: both;
    animation-delay: 4s;
}

.animate-active .tbj-title {
    animation: enterUp 0.7s;
    animation-delay: 0.7s;
    animation-fill-mode: both;
}

.animate-active .text-by {
    animation: boxCircleColor 0.7s;
    animation-fill-mode: both;
    animation-delay: 1s;
}

.animate-active .text-bienvenidos {
    animation: enterUp 0.7s;
    animation-delay: 1.3s;
    animation-fill-mode: both;
}

@keyframes isotipo {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeInContentMain {
    0% {
        min-width: 100%;
    }
}

@keyframes logoCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logoBox {
    from {
        border: 5px #00000000 solid;
    }
}

@keyframes boxCircleColor {
    from {
        opacity: 0;
    }
}

@keyframes enterUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* aviso privacidad ---------- */
#modal_aviso.visible {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.3);
}

#modal_aviso {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0);
    overflow: auto;
    padding-bottom: 100px;

    transition: 0.5s;
    visibility: hidden;
}

.contenido_modal {
    width: 90%;
    height: auto;
    padding: 34px;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 6px;
    margin: auto;
    margin-top: 70px;

    opacity: 0;
    transition: 0.4s;
}

.visible .contenido_modal {
    opacity: 1;
}

.modal_header {
    display: flex;
}

.modal_header img {
    height: 70px;
}

.modal_header h4 {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    height: auto;
}

.modal-body {
    text-align: justify;
}

#btn_closed_modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18pt;
    color: #bbb;
    cursor: pointer;
}

#btn_closed_modal img {
    width: 40px;
}

.modal_body p {
    text-align: justify;
}

.text-instrucction-mail {
    font-size: 14px;
    color: #768192;
}

/* datos invalidos ---------- */
.invalid-feedback {
    position: absolute;
    bottom: 20px;
    width: calc(var(--aside-width) - 80px);
    padding: 15px;
    border-radius: 4px;
    font-size: 11px;
    background-color: #efd0d0;
    color: #930000;
    text-align: center;
}

.is-invalid {
    animation: invalidInput 3s;
}

@keyframes invalidInput {
    from {
        border: 1px solid red;
    }
}

/* responisve -------- */
@media(width <=850px) {

    .box-title-tbj,
    .text-by,
    .text-bienvenidos {
        display: none;
    }

    .present-tbj {
        width: 20%;
        position: absolute;
        height: 100dvh;
    }

    .aside-tbj {
        min-width: 100%;
        width: 100%;
        background-color: rgb(255 255 255 / 82%);
    }

    .animate-active .aside-tbj {
        animation: asideEnterMobile 1s;
        animation-fill-mode: both;
        animation-delay: 3.3s;
    }

    @keyframes asideEnterMobile {
        from {
            opacity: 0;
            transform: translateX(50%);
        }
    }
}
