@font-face {
    font-family: "UTM Bebas";
    src: url(/assets/landing/fonts/UTMBebas.eot);
    src: url("/assets/landing/fonts/UTMBebas.eot?#iefix") format("embedded-opentype"),
    url(/assets/landing/fonts/UTMBebas.woff2) format("woff2"),
    url(/assets/landing/fonts/UTMBebas.woff) format("woff"),
    url(/assets/landing/fonts/UTMBebas.ttf) format("truetype"),
    url("/assets/landing/fonts/UTMBebas.svg#UTMBebas") format("svg");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Modal */
.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.1s ease-in-out forwards;
}
.modal.modal-show {
    display: flex;
}
.modal.modal-hide {
    animation: fadeOut 0.1s ease-in-out 0.1s forwards;
}
.modal-block {
    position: relative;
    width: 20%;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    margin: 1rem;
    padding: 2rem;
    border-radius: 0.25rem;
    height: 75%;
}
.modal-content {
    position: relative;
    max-height: 95%;
    overflow: auto;
    color: black;
}
#card-modal .modal-block {
    height: max-content;
}
.modal.modal-show .modal-content {
    animation: fadeInDown 0.3s ease-in-out forwards;
}
.modal.modal-hide .modal-content {
    animation: fadeOutUp 0.2s ease-in-out forwards;
}
.modal-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-content p {
    margin: 1rem 0;
    line-height: 1.5rem;
}
.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.75rem;
    font-weight: bold;
    padding-right: 0.55rem;
    padding-top: 0.35rem;
    color: rgba(0,0,0,0.2);
    cursor: pointer;
    user-select: none;
}
.modal-close:hover, .modal-close:focus {
    color: rgba(0,0,0,0.5);
}
#qr-code-image {
    width: 100%;
}
.StaticMain #qr-modal-title,
.StaticMain #unlock-modal-title {
    padding: 0;
    background: unset;
    margin: 0 0 20px;
    text-transform: uppercase;
    color: black;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-3rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-3rem);
    }
}

/* Home Modal */
#home-modal .modal-block {
    background-color: unset;
    width: 100%;
    height: 100%;
    box-shadow: unset;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-modal .modal-block .modal-login {
    background-image: url("../../../../public/frontend/images/landing/bg-login.webp");
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 100%;
}

#home-modal .modal-block .modal-content .modal-body {
    width: 25%;
    margin: 0 auto;
}

#home-modal .modal-block .modal-content .modal-body .login-body {
    margin-top: 220px;
}

#home-modal .modal-block .modal-close {
    top: 82px;
    right: 33%;
    color: #be0408;
    font-size: 2.75rem;
}

#home-modal .modal-block .modal-content {
    width: 100%;
}

#home-modal .modal-block .form-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

#home-modal .modal-block .form-group .form-label {
    color: #1e5750;
    text-transform: uppercase;
    width: 160px;
    font-size: 20px;
    font-family: "UTM Bebas";
}

#home-modal .modal-block .form-group input {
    flex: 1;
    height: 35px;
    background-color: #fff;
    border: 1px solid #707070;
    padding: 0 10px;
    font-family: sans-serif !important;
    font-size: 16px;
    text-transform: none !important;
    border: unset;
    outline: unset;
    border-radius: 5px;
}

#home-modal .modal-block #captcha_input {
    width: 110px;
}

#home-modal .modal-block .reload-icon {
    max-width: 20px !important;
    cursor: pointer;
    object-fit: contain;
}

#home-modal .form-group + .form-group {
    margin-top: 15px;
}

#home-modal .login-btn-box {
    margin-top: 40px;
    text-align: center;
}

#home-modal .modal-btn {
    margin-top: 15px;
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    width: 180px;
}

#home-modal .modal-btn img {
    width: 100%;
}

#home-modal .more-block {
    color: #1e5750;
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
}

#home-modal .more-block div {
    margin-bottom: 5px;
}

#home-modal .more-block a {
    color: #be0408;
    cursor: pointer;
}

@media(max-width: 1024px) {
    html { font-size: 14px; }
    .modal-content { width: 80%; }
    #home-modal .modal-block .modal-content .modal-body {
        width: 40%;
    }
    #home-modal .modal-block .modal-close {
        right: 22%;
    }
}
@media(max-width: 992px) {
    #home-modal .modal-block .modal-content .modal-body .login-body {
        margin-top: 280px;
    }
    #home-modal .modal-block .modal-close {
        right: 10%;
        top: 115px;
    }
}
@media(max-width:767px) {
    html { font-size: 12px; }
    .modal-content { padding: 2rem 1rem 1rem 1rem; width: 80%; }
    .modal-content h1 { margin-bottom: 1.5rem; }
    #home-modal .modal-block {
        width: 90%;
    }
    #home-modal .modal-block .modal-close {
        right: 85px;
        top: 100px;
        font-size: 3.75rem;
    }
}
