@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Montserrat:wght@500&family=WindSong&display=swap');

/*--------------------------------------------------------------
# Neon color for button in the corner
--------------------------------------------------------------*/
:root {
    --clr-neon: hwb(180 20% 19%);
}

/*--------------------------------------------------------------
# Common styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/*--------------------------------------------------------------
# Login
--------------------------------------------------------------*/
.login-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#login-button-container {
    position: fixed;
    top: 30px;
    right: 30px;
}

#login-button-container button {
    font-size: 1rem;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: var(--clr-neon);
    background-color: transparent;
    border: var(--clr-neon) 0.125em solid;
    padding: 0.15em 0.5em;
    border-radius: 0.125em;
    text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em currentColor;
    box-shadow: inset 0 0 0.5em 0 var(--clr-neon), 0 0 0.5em 0 var(--clr-neon);
    position: relative;
    width: 100px;
}

#login-button-container button::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 0 2em 0.5em var(--clr-neon);
    opacity: 0;
    background-color: var(--clr-neon);
    z-index: -1;
    transition: opacity 100ms linear;
}

#login-button-container button:hover,
#login-button-container button:focus {
    color: black;
    text-shadow: none;
}

#login-button-container button:hover::before,
#login-button-container button:focus::before {
    opacity: 1;
}

#login-button-container button:hover::after,
#login-button-container button:focus::after {
    opacity: 1;
}

.wrapper {
    position: relative;
    width: 420px;
    height: 340px;
    background: transparent;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper-button {
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    margin-top: 10px;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
    margin-top: -25px;
}

.form-box h2 {
    font-size: 1.7em;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

.form-box h3 {
    font-size: 0.8em;
    color: #AFABAA;
    text-align: center;
    margin-top: 10px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 40px;
    border-bottom: 2px solid #fff;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #AFABAA;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #fff;
    line-height: 57px;
}

.remember {
    font-size: .9em;
    color: #AFABAA;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember label input {
    accent-color: #162938;
    margin-right: 3px;
}

#start-wrapper {
    font-size: 12px;
    width: 430px;
    height: 300px;
    line-height: 2;
    color: white;
}

.login-logo {
    display: block;
    margin: 0 auto;
    width: 80px;
    margin-top: 40px;
}

h2 {
    text-align: center;
    font-size: 24px;
    margin-top: 20px;
}

#start-wrapper .start button {
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    color: #fff;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 50px;
}

#help-wrapper {
    display: none;
    width: 460px;
    height: 430px;
}

#help-wrapper .wrapper-button {
    margin-top: -10px;
}

#help-wrapper .input-box {
    height: 40px;
}

#contact-wrapper {
    font-size: 17px;
    width: 400px;
    height: 100%;
    line-height: 2;
    color: white;
}

#contact-wrapper .contact-close {
    position: absolute;
    top: -10px;
    margin-left: 300px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#contact-wrapper .contact-close:hover {
    color: var(--clr-neon);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #AFABAA;
    text-align: center;
    font-size: 0.8em;
    line-height: 1.5;
    padding: 5px;
}

@media screen and (min-width: 376px) and (max-width: 600px) {
    .wrapper {
        width: 350px;
    }

    #start-wrapper {
        width: 350px;
        font-size: 11px;
    }

    #login-wrapper {
        width: 350px;
        font-size: 13px;
    }

    #help-wrapper {
        width: 350px;
        font-size: 13px;
    }

    #contact-wrapper {
        width: 300px;
        font-size: 12px;
    }

    #contact-wrapper .contact-close {
        margin-left: 220px;
        font-size: 30px;
    }

    footer {
        font-size: 11px;
    }
}

@media screen and (min-width: 311px) and (max-width: 375px) {
    .wrapper {
        width: 300px;
    }

    #start-wrapper {
        width: 300px;
        font-size: 9px;
    }

    #login-wrapper {
        width: 300px;
        font-size: 11px;
        height: 320px;
    }

    #help-wrapper {
        width: 300px;
        height: 400px;
        font-size: 10px;
    }

    #contact-wrapper {
        width: 300px;
        height: 100%;
        font-size: 12px;
    }

    #contact-wrapper .contact-close {
        margin-left: 220px;
        font-size: 30px;
    }

    footer {
        font-size: 9px;
    }
}

@media screen and (max-width: 310px) {
    .wrapper {
        width: 260px;
    }

    #start-wrapper {
        width: 260px;
        font-size: 8.5px;
    }

    #login-wrapper {
        width: 260px;
        font-size: 10px;
        height: 320px;
    }

    #help-wrapper {
        width: 260px;
        height: 400px;
        font-size: 10px;
    }

    #contact-wrapper {
        width: 260px;
        font-size: 11px;
    }

    #contact-wrapper .contact-close {
        margin-left: 190px;
        font-size: 30px;
    }

    footer {
        font-size: 8px;
    }
}

@media screen and (max-width: 999px) and (orientation: landscape) {
    .wrapper {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 10px;
    }

    #start-wrapper {
        height: 200px;
        width: 50%;
        font-size: 9px;
    }

    .login-logo {
        width: 10%;
        margin-top: 60px;
        margin-bottom: -10px;
    }

    h2 {
        font-size: 15px;
    }

    #start-wrapper .start button {
        width: 80%;
        height: 30px;
        font-size: 9px;
    }

    #login-wrapper {
        width: 50%;
        height: 200px;
    }

    .form-box h2 {
        font-size: 10px;
        margin-top: 5px;
    }

    .remember {
        font-size: 8px;
        margin-bottom: 0px;
    }

    .wrapper-button {
        font-size: 10px;
        height: 30px;
    }

    .input-box .icon {
        font-size: 10px;
        margin-top: -27px;
    }

    .input-box {
        height: 10px;
        font-size: 7px;
    }

    #login-button-container button {
        font-size: 9px;
    }

    #help-wrapper {
        height: 200px;
        width: 50%;
        font-size: 8px;
    }

    #help-wrapper .wrapper-button {
        font-size: 9px;
        margin-top: 0px;

    }

    #help-wrapper h2 {
        font-size: 10px;
        margin-top: -7px;
    }

    #help-wrapper .input-box {
        height: 10px;
        font-size: 7px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #contact-wrapper {
        font-size: 10px;
        width: 50%;
        padding-bottom: 35px;
    }

    #contact-wrapper .contact-close {
        font-size: 20px;
        position: inherit;
    }

    footer {
        font-size: 7px;
    }
}