﻿html {
    box-sizing: border-box;
    font-size: 62.5%;
}

    html *,
    html *:before,
    html *:after {
        box-sizing: inherit;
    }

body {
    background: linear-gradient(to top, #0C3D65, #093050);
}

.sidebar {
    display: none;
}

.container {
    display: grid;
    place-items: center;
    height: 100vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.box {
    position: relative;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 700px;
    padding: 220px 20px 20px;
    overflow: hidden;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3);
}


@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .box {
        width: 700px;
        min-height: 450px;
        padding: 0;
    }

    .box__toggle:checked + .box__image {
        left: 350px;
    }
}

@media only screen and (min-width: 1024px) {
    .box {
        width: 700px;
        min-height: 450px;
        padding: 0;
    }

    .box__toggle:checked + .box__image {
        left: 350px;
    }
}

/*@media (min-width: 768px) {
    .box {
        min-height: 450px;
        padding: 0;
    }

    .box__toggle:checked + .box__image {
        left: 350px;
    }
}*/

@media (max-width: 767px) {
    .box__toggle:checked ~ .form--register {
        width: 100%;
        height: auto;
        opacity: 1;
    }

    .box__toggle:checked ~ .form--login {
        width: 0;
        height: 0;
        opacity: 0;
    }
}

.box__image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: 0 bottom;
    background: linear-gradient(to top right, #0081e1, #0064ae);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: 0.4s ease-in-out;
    overflow: hidden;
}

@media (min-width: 768px) {
    .box__image {
        width: 350px;
        height: 100%;
        object-position: 0 0;
    }
}

.form {
    width: 100%;
    overflow: hidden;
    text-align: left;
    transition: 0.3s;
}

@media (min-width: 768px) {
    .form {
        width: 350px;
        padding: 0 20px;
    }
}

.form__title {
    margin-bottom: 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.form--login {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.form--register {
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
    .form--register {
        width: 350px;
        height: auto;
        opacity: 1;
    }
}

.form__helper {
    position: relative;
    margin-bottom: 15px;
}

    .form__helper:last-of-type {
        margin-bottom: 0;
    }

.form__label {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: black;
    font-family: "Lato", sans-serif;
    font-size: 1.4rem;
    transition: 0.3s;
}

.form__input {
    position: relative;
    width: 100%;
    padding: 5px 0;
    color: black;
    border-width: 0;
    border-bottom: 1px solid black;
    outline: none;
    font-family: "Lato", sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
}

    .form__input::placeholder {
        opacity: 0;
    }

    .form__input:not(:placeholder-shown) + .form__label {
        bottom: 25px;
        color: #0C3D65;
        font-size: 1.2rem;
    }

    .form__input:focus {
        border-bottom-color: #0C3D65;
    }

        .form__input:focus + .form__label {
            bottom: 25px;
            color: #0C3D65;
            font-size: 1.2rem;
        }
    /* Remove stored username and password */
    .form__input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px white inset;
    }

.form__button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    color: white;
    font-weight: 600;
    background-color: #0081e1;
    border: 0;
    cursor: pointer;
    font-family: "Lato", sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.5s ease;
}

    .form__button:hover {
        background-color: #005594;
    }

.form__text {
    margin-top: 10px;
    font-family: "Lato", sans-serif;
    font-size: 1.4rem;
}

.form__link {
    color: #0081e1;
    cursor: pointer;
    transition: color 0.5s ease;
}
    .form__link:hover {
        color: #005594;
    }
