/* !make the page responsive for mobile */

@import url("https://fonts.googleapis.com/css2?family=New+Rocker&display=swap");

:root {
    --display: flex;

    /* image side */
    --logo-container-height: 123px;
    --logo-container-background: rgba(0, 0, 0, 0.4);
    --background-width: 30%;
    --background-min-width: 500px;
    --circle-border: 7px solid #676767;
    --circle-letter-size: 70px;
    --circle-height: 100px;
    --circle-width: 100px;

    /* form side */
    --form-side-width: calc(100% - var(--background-width));
    --description-text-size: 3.5vmax;
    --form-container-width: 1209px;
    --form-container-height: 418px;
    --form-container-background: #101018;
    --form-header-text-size: 40px;
    --form-label-text-size: 22px;
    --form-input-width: 278px;
    --form-input-height: 36px;
    --form-input-background: #0b3434;
    --create-account-button-width: 283px;
    --create-account-button-height: 63px;
    --create-account-text-padding: 13px 44px;
    --create-account-login-text-size: 30px;
    --login-text-color: #157e7e;
    --login-text-color-hover: #0a4747;

    /* distances */
    --between-logo-container-top: 117px;
    --between-description-form-container: 60px;
    --between-description-top: 70px;
    --between-button-form-container: 48px;
    --between-circle-logo-text: 10px;
}

* {
    box-sizing: border-box;
    font-family: "New Rocker";
}

html,
body {
    height: 100%;
}

body {
    display: var(--display);
    color: #fff;
}

/* +image side */
.image {
    background: url(background.jpg);
    background-position: center;
    background-size: cover;
    min-width: var(--background-min-width);
    width: var(--background-width);
}

.form {
    width: var(--form-side-width);
    height: 100%;
    background: #1e1a26;
}

.logo {
    background: var(--logo-container-background);
    width: 100%;
    min-height: var(--logo-container-height);
    margin-top: var(--between-logo-container-top);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .logo-circle {
    width: var(--circle-width);
    height: var(--circle-height);
    margin-right: var(--between-circle-logo-text);
    display: grid;
    place-items: center;
    padding-bottom: 10px;
    border: var(--circle-border);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.logo img {
    margin-top: 0.6em;
}

/* +form */
.description {
    font-size: var(--description-text-size);
    font-weight: 500;
    text-align: center;
    margin-top: var(--between-description-top);
}

.form-container {
    background: var(--form-container-background);
    height: var(--form-container-height);
    margin-top: var(--between-description-form-container);
}

.form-container h3 {
    font-size: var(--form-header-text-size);
    padding-top: 10px;
    height: 15%;
    display: flex;
    justify-content: center;
    font-weight: 400;
    margin: 0;
}

.sub-container {
    display: flex;
    justify-content: center;
    gap: 200px;
    margin: auto;
    height: 85%;
    min-width: 80%;
}

.sub-container > * {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.sub-container label {
    font-size: var(--form-label-text-size);
    margin-bottom: -32px;
}

.sub-container input {
    color: white;
    font-size: 1.5rem;
    padding: 5px;
    border: none;
    background: var(--form-input-background);
    width: var(--form-input-width);
    height: var(--form-input-height);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.sub-container input:focus {
    outline: 1px solid rgb(0, 225, 255);
}

.sub-container input:invalid {
    outline-color: red;
}

.sub-container input:optional {
    outline-color: green;
}

.sub-container [data-required]::after {
    content: "*";
    color: #f00;
}

#password,
#confirm-password {
    font-size: 1rem;
}

/* +create button */
.login-signup {
    font-size: 30px;
}

button {
    background: var(--form-container-background);
    color: #fff;
    border: none;
    margin: auto;
    display: block;
    margin-top: 50px;
    padding: var(--create-account-text-padding);
    font-size: 30px;
    cursor: pointer;
    transition: 0.4s;
    -webkit-transition: 0.4s;
    -moz-transition: 0.4s;
    -ms-transition: 0.4s;
    -o-transition: 0.4s;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    cursor: pointer;
}

button:hover {
    color: var(--form-input-background);
    background: #fff;
}

.login-text {
    display: block;
    display: flex;
    justify-content: center;
    margin-top: 0.3em;
}

.login-button {
    color: var(--login-text-color);
    text-decoration: none;
    transition: 0.2s;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    -o-transition: 0.2s;
    margin-left: 5px;
    cursor: pointer;
}

.login-button:hover {
    color: var(--login-text-color-hover);
}

@media only screen and (min-width: 634px) and (max-height: 770px) {
    .description {
        margin-top: 1rem;
        margin-bottom: 2rem;
        font-size: 4vh;
    }

    .form-container {
        margin-top: revert;
        height: 380px;
    }

    button {
        margin-top: 1em;
    }
}

@media only screen and (min-height: 771px) and (max-height: 970px) {
    .description {
        margin-top: 1rem;
        margin-bottom: 8vh;
        font-size: 5vh;
    }

    .form-container {
        margin-top: revert;
    }

    button {
        margin-top: 1em;
    }
}

@media only screen and (min-width: 943px) and (max-width: 1366px) {
    :root {
        --background-min-width: unset;
        --logo-container-height: 8vw;
        --circle-width: 7vw;
        --circle-height: 7vw;
    }

    .unicly-text {
        width: 80%;
    }

    .u-letter {
        width: 60%;
    }

    .sub-container {
        gap: 10%;
    }
}

@media only screen and (min-width: 635px) and (max-width: 942px) {
    :root {
        --display: block;
        --between-logo-container-top: 0;
        --background-width: 100%;
        --form-side-width: 100%;
        --between-description-top: 0;
        --description-text-size: 6vw;
        --circle-width: 11%;
        --circle-height: 11%;
        --logo-container-height: 80px;
    }

    .description {
        margin-top: -4vh;
    }

    .form {
        padding-top: 8vw;
    }

    .unicly-text {
        width: 40%;
    }

    .u-letter {
        width: 60%;
    }

    .sub-container {
        gap: 10vw;
    }
}

@media only screen and (max-width: 634px) {
    :root {
        --display: block;
        --between-logo-container-top: 0;
        --background-width: 100%;
        --form-side-width: 100%;
        --between-description-top: 0;
        --description-text-size: 6vw;
        --circle-width: 11%;
        --circle-height: 11%;
        --logo-container-height: 80px;
        --form-container-height: 650px;
        --form-header-text-size: 6vw;
    }

    .form {
        padding-top: 8vw;
    }

    .form h3 {
        height: 13%;
    }

    .unicly-text {
        width: 40%;
    }

    .u-letter {
        width: 60%;
    }

    .sub-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .sub-container > * {
        align-items: center;
        width: 100%;
        gap: 30px;
    }

    .sub-container input {
        margin-top: 10px;
    }

    .sub-container > div > * {
        display: block;
        width: 70%;
    }
}

@media only screen and (max-width: 633px) {
    body {
        min-height: 140vh;
    }

    .image {
        min-width: 200px;
        width: 100%;
    }

    .description {
        font-size: 8vw;
    }

    .logo {
        min-height: 50px;
    }

    .login-text {
        font-size: 6vw;
    }

    .form-container {
        margin-top: 0;
        padding-top: 10px;
        min-height: 700px;
    }

    .form-container h3 {
        font-size: 7vw;
    }
}
