﻿/* Center the page vertically */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato-Regular';
    width: 100%

}

h1, h2, h3, h4, h5, h6 {
    font-family: 'lato-semibold';
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    align-items: center;
    max-width: 100%;
    min-height: 100%;
    background-color: white;
    box-sizing: border-box;
    border-radius: 20px;
    height: 100%;
    width: 80%;
}

.inner-container-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #EEF1F4;
    border-radius: 20px 0 0 20px;
    height: 100% !important;
    width: 100%;
}

    .inner-container-left .logo-image {
        width: 100%;
        height: 100%;
        background-image: url('../images/brand.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

.inner-container-right {
    width: 100%;
}

    .inner-container-right form {
        font-family: 'lato-regular';
    }

    .inner-container-right #terms-conditions,
    .inner-container-right #data-privacy {
        cursor: pointer;
    }

.horizontal-rectangle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    background-color: #CDE4FB;
    top: 49%;
    width: 65% !important;
    height: 65% !important;
    transform: translate(-50%, -50%);
    opacity: 35%;
    border-radius: 20px;
}

.image-rectangle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 80%;
    z-index: -1;
    filter: brightness(0.8);
}


.terms-dialog {
    max-width: 60vw;
}

.terms-body {
    max-height: 40vh;
    overflow-y: auto;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: left;
    background: transparent;
    pointer-events: none;
}

.download-apk {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #000000;
    color: #FFFFFF;
    width: fit-content;
    padding: 0.3rem 0.3rem 0.3rem 0rem;
    cursor: pointer;
    pointer-events: auto;
}

    .download-apk img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .download-apk .download-text {
        font-size: 0.7rem;
        font-weight: bold;
    }

    .download-apk .android-text {
        font-size: 1.2rem; 
        font-weight: bold;
    }

@media (max-width: 1200px) and (orientation: landscape) {
    .main-container {
        width: 100%;
    }

    .horizontal-rectangle {
        width: 95% !important; 
        height: 75% !important; 
    }
}

@media (max-width: 1200px) and (orientation: portrait) {
    .main-container {
        width: 100%;
    }

    .horizontal-rectangle {
        width: 95% !important;
        height: 55% !important;
    }
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 1rem;
    }

    .inner-container-left {
        width: 100%;
        border-radius: 20px 20px 0 0;
        margin-bottom: 1rem;
        height: auto;
    }

        .inner-container-left .logo-image {
            height: 10rem;
            /*margin-bottom: 20px !important;*/
        }

    .inner-container-right {
        width: 100%;
        border-radius: 0 0 20px 20px;
    }

    .horizontal-rectangle {
        display: none;
    }

    .terms-dialog {
        max-width: 100vw;
    }

    .terms-body {
        max-height: 80vh;
    }

    footer {
        justify-content: center;
    }
}