body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to top right, #304E80, #31AFD4, white);
    display: flex;
    justify-content: center;
    align-items: center;

    color: #161A27;
}

h1, .error-message, span {
    font-family: "Roboto", sans-serif;
}

/* Temporarily hide mobile navbar until logged in */
.mobileNav {
    display: none;
}


/* Sign in box */
.mainbox {
    background-color: #304E80;
    border-radius: 12px;
    box-shadow: -20px 20px 10px rgba(0, 0, 0, 0.6);
    width: 450px;
    text-align: center;
    padding-bottom: 75px;
}

/* Logo */
.mainbox img {
    margin-top: 30px;
    width: 50%;
}

/* Sign in box label */
.mainbox h1 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Error message */
@keyframes fadeIn {
    from {
        height: 0;
        padding: 0 0;
    }

    to {
        height: 50px;
        padding: 15px 0;
    }
}

.mainbox .error-message {
    background-color: #B02E0C;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 0 0;
    height: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    overflow: hidden;
}

/* Email and password inputs */
.mainbox .input-group {
    margin: 50px auto;
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mainbox .input-group .text-field-label {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.mainbox .input-group .text-field-container {
    width: 70%;
    height: 28px;
}

.mainbox .input-group .text-field {
    border-radius: 8px;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    font-size: 16px;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 25%;
    cursor: pointer;
    display: none;
}

/* Remember me checkbox */
.mainbox .remember-me {
    display: flex;
    box-sizing: border-box;
}

.mainbox .remember-me .custom-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mainbox .remember-me .custom-checkbox .checkmark {
    width: 100%;
    height: 100%;
    display: inline-block;
    border-radius: 3px;
    margin: 0;
    background: #31AFD4 url(https://upload.wikimedia.org/wikipedia/commons/thumb/2/27/White_check.svg/1200px-White_check.svg.png) center/0% no-repeat;
}

.mainbox .remember-me .custom-checkbox input:checked + .checkmark {
    background-size: 60%;
}

.mainbox .remember-me .custom-checkbox input {
    display: none;
}

.mainbox .remember-me span {
    color: #31AFD4;
    font-size: 16px;
    margin: 0px 0 0 15px;
}

/* Forgot password */
.mainbox .forgot-password {
    color: #31AFD4;
    font-style: italic;
    font-size: 16px;
    cursor: pointer;
}

/* Responsive for mobile */
@media only screen and (max-width: 450px) {
    .mainbox {
        width: 100%;
        box-shadow: none;
    }

    .mainbox .input-group .text-field-label {
        font-size: 14px;
    }

    .remember-me {
        margin-top: 3px;
    }

    .mainbox .remember-me span {
        font-size: 13px;
    }

    .mainbox .forgot-password {
        font-size: 16px;
    }

    .mainbox .input-group {
        flex-direction: column;
        align-items: flex-start;
        margin: 30px auto;
    }

    .mainbox .input-group .text-field-container {
        width: 100%;
        height: 40px;
        margin-top: 8px;
        display: flex;
    }

    .toggle-password {
        top: 60%;
        right: 10px;
    }
}