@font-face {
    font-family: 'Cinzel';
    src: url(../fonts/Cinzel-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'NovaFlat';
    src: url(../fonts/NovaFlat-Regular.ttf);
}


:root {
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --color1: #fc5e5e;
    --color2: #080031;
    --color-error: #a80000;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    animation: transitionIn 1.5s;
    min-height: 100vh;
    display: flex;
    background: var(--color2);
    background: -webkit-linear-gradient(to left, var(--color1), var(--color2));
    background: linear-gradient(to left, var(--color1), var(--color2));
}

@keyframes transitionIn {
    from{
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}

div.section-one {
    width: 38%;
    background-image: url(../imgs/city-background.jpg);
    background-repeat: none;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

div.logo-container {
    background-color: rgba(0, 0, 0, 0.849);
    width: 100%;
    margin-top: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 6px;
    padding: 20px 10px;
    font-family: 'Cinzel';
    font-size: 1rem;
}

div.logo-container>img {
    width: 125px;
    height: 105px;
}

div.section-two {
    width: 62%;
    display: flex;
    justify-content: center;
    align-items: center;

}

div.form-container {
    width: 97%;
    min-height: 97%;
    background-color: rgba(0, 0, 0, 0.788);
    box-shadow: 1px 1px 10px black;
    border-radius: 5px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    font-family: 'NovaFlat';
}

div.form-container>h1 {
    width: fit-content;
    color: white;
    font-size: 2.1rem;
    border-bottom: 3px solid white;
    padding-bottom: 6px;
}

div.form-container>p {
    color: white;
    font-size: 1rem;
    margin-top: 5px;
    margin-bottom: 0px;
}

strong {
    font-size: 1.1rem;
}

form {
    margin-top: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 20px;
    column-gap: 60px;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0px;
    max-width: 600px;
}

form>div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 250px;
}

form>div>label {
    display: block;
    color: white;
}

input {
    width: 250px;
    height: 35px;
    color: white;
    appearance: none;
    border: none;
    border-bottom: 2px solid var(--color1);
    border-radius: 3px;
    background: none;
    font-size: 1.2rem;
}

input::placeholder {
    color: rgba(248, 248, 255, 0.212);
}

form>div>label span {
    color: red;
}

input:focus {
    outline: none;
    box-shadow: 0 -1px 3px var(--color1);
}

.error {
    position: relative;
    color: red;
    font-size: 0.82rem;
    left: 15px;
}

.specifications {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: rgb(199, 199, 199);
}

.met {
    color: rgb(24, 202, 0);
}

.check {
    display: none;
    font-size: 0.8rem;
}

input#password:focus~.specifications>.check {
    display: block;
}

label > img {
    position: relative;
    width: 30px;
    height: auto;
    bottom: -8px;
}

label {
    position: relative;
}

img[alt^="email"]{
    width: 25px;
    height: auto;
}

.error:not(:empty)::before {
    content: "  ";
    height: 17px;
    width: 17px;
    position: absolute;
    background-image: url(../imgs/error.svg);
    background-repeat: no-repeat;
    background-size: cover;
    top: -1px; 
    left: -20px;
}

.informing {
    color: var(--color1);
    font-size: 1rem;
}

button{
    border: 2px solid var(--color1);
    background-color: transparent;
    color: var(--color1);
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: 0.1s;
}

button:hover{
    outline: none;
    background-color: var(--color1);
    color: black;
    transform: scale(1.05);
}

button:focus{
    outline: none;
}

button:active{
    transform: scale(0.96);
}

.already-account {
    margin-top: 10px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.already-account > a:visited, .already-account > a:link {
    font-size: 1.1rem;
    color: var(--color1);
    text-decoration: none;
}

@media only screen and (max-width: 850px){
    :root{
        font-size: 14px;
    }

    body{
        flex-direction: column;
        gap: 10px;
        background: -webkit-linear-gradient(to top, var(--color1), var(--color2));
        background: linear-gradient(to top, var(--color1), var(--color2));
    }

    div.section-one{
        width: 100%;
        background-image: url(../imgs/city-landscape.jpg);
        align-items: center;
        min-height: 25vh;
    }

    div.section-two{
        width: 100%;
        min-height: 70vh;
    }

    div.section-two > .form-container{
        width: 90%;
        min-height: max-content;
        margin-bottom: 10px;
    }

    div.logo-container{
        margin-top: 0;
        padding: 10px;
        font-size: 0.8rem;
        gap: 30px;
    }

    div.logo-container > img{
        width: 80px;
        height: 70px;
    }

    form{
        align-self: center;
        justify-content: center;
        flex-wrap: nowrap;
        flex-direction: column;
    }
}

@media only screen and (min-width: 1325px){
    :root{
        font-size: 20px;
    }
    
    form{
        max-width: 800px;
    }

    form > div{
        min-width: 350px;
    }

    .form-container{
        gap: 10px;
    }
}