﻿html {
    height: 100%;
}

body {
    background-image: url("/assets/images/background.svg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size:cover;
}

* {
    font-family: 'Poppins', sans-serif;
}

.main-content {
    position:absolute;
    width:100%; 
    padding-bottom: 40px;
}

.container-top-title {
    position: absolute;
    display:flex;
    margin-left: 40px;
    margin-top: 16px;
    padding: 0px;
    z-index: 0;
    width: 143px;
    height: 55px;
    text-anchor: start;
}

    .container-top-title > img {
        width: 100%;
        height: 100%;
    }

.ejourney-title {
    font-weight: 800;
    font-size: 20px;
    background: #D6DF24;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container-img-mascot {
    position: fixed;
    z-index: -10;
    min-height: 100%;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#img-mascot-bg {
    position: relative;
    top: 136px;
    left: 33px;
    width: 333px;
    object-fit: cover;
}

.container-main-welcome {
    display: flex;
    justify-content: center;
    margin-top: 88px;
    /* background-color: orange; */
    margin-bottom: 24px;
}

.container-sub-main-welcome {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0px;
    width: 600px;
    /* background-color: green; */
}

.container-sub-main-welcome > p {
    margin: 0px 0px 30px 0px;
}

.container-center-text {
    text-align: center;
    filter: drop-shadow(#1A2036 0px 4px 4px)
}

.container-flex-center {
    display: flex;
    justify-content: center;
    flex-direction:column;
    align-items: center;
}

.container-loading {
    position: fixed;
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content:center;
    align-items:center;
    background-color: #152A4390;
    z-index: 2;
    padding: 0px;
    margin: 0px;
}

.loading-spin {
    transform: translateY(-50px);
    animation-name: loading_spin;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    filter: drop-shadow(5px 5px 3px);
}

.hidden {
    display: none !important;
}

@keyframes loading_spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform:rotateY(360deg);
    }
}

.container-fill-form {
    display: inline-flex;
    flex-direction: column;
    width: 416px;
    background: url('/assets/images/bg-register.svg');
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    padding: 20px 40px;
    border-radius: 16px;
    margin-bottom: 28px;
}

.form-label-main-page {
    font-size: 14px;
    margin-bottom: 4px;
    margin-left: 4px;
    font-weight: 500;
    color: #B8D532;
}

.input-main-page {
    font-size: 14px;
    height: 45px;
    border-radius: 8px;
    padding: 4px 12px;
    border: none;
    margin-bottom: 8px;
}

.input-error {
    border: solid;
    border-width: 1px;
    border-color: red;
}

.brand-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #96AF5C;
    /*background: linear-gradient(to bottom, #C9DB2B, #AFD135);*/
    /*    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent*/
}

.brand-subheader {
    color: #2D3E83;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    font-style: normal;
}

.form-main-submit-button {
    display: flex;
    align-items: center;
    background-image: linear-gradient(to top, #96AF5C, #CFEE55);
    width: 365px;
    height: 48px;
    border-radius: 16px;
    border-style: none;
    filter: drop-shadow(#1A2036 0px 6px 8px);
    cursor: pointer;
}

    .form-main-submit-button > span {
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        color: #132642;
        width: 100%;
    }

/* Media setup */
@media (max-width: 600px) {
    .container-sub-main-welcome {
        width: 340px;
    }

    .brand-header {
        font-size: 28px;
    }

    .brand-subheader {
        font-size: 14px;
    }

    .container-top-title {
        margin-left: 15px;
        margin-top: 0px;
    }

    .container-main-welcome {
        margin-top: 72px;
    }

    .brand-header {
        font-size: 20px;
    }

    .brand-subheader {
        font-size: 16px;
    }

    .container-fill-form {
        width: 302px;
        padding: 20px 16px;
    }

    .form-main-submit-button {
        width: 200px;
    }

    #img-mascot-bg {
        width: 240px;
        left: -30px;
    }
}

/* animation elements */
#main-title {
    opacity: 0;
    animation-name: fade-in;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

#sub-title-en {
    opacity: 0;
    animation-name: fade-in;
    animation-delay: 2s;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#sub-title-id {
    opacity: 0;
    animation-name: fade-in;
    animation-delay: 3.5s;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.container-lang-select {
    opacity: 0;
    animation-name: fade-up;
    animation-delay: 2s;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.fade-exit {
    animation-name: fade-out;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-play-state:   running;
}


@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

