* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #ececec;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.block-img-form img{
    position: absolute;
    right: 100px;
    width: 400px;
    transform: rotate(30deg);
}
.block-in-forma {
    display: flex;
}
.block-in-forma h1 {
    position: absolute;
    top: 40%;
    left: 2%;
    mix-blend-mode:exclusion;
    font-size: 60px;
}
/* .wrap img {
    height: 100vh;
    width: 100vw;
} */

.wrap {
    position: relative;
    width: 100vw;
    display: flex;
    /* flex-direction: column; */
}
.forma {
    width: 100%;
    
    display: flex;
    justify-content: center;
}

form {
    width: 600px;
    height: 450px;
    background: rgba(180, 180, 180, 0.2);
    backdrop-filter: blur(10px);
    border: 1px #373737 solid;
    border-radius: 8px;
    box-shadow: 0 5px 60px rgba(255,255,255, 0.3);
    text-align: center;
    position: relative;
    top: 40%;
}

form h2 {
    padding: 30px 20px;
    color: #dbd6d3;
    mix-blend-mode: difference;
}

form input {
    width: 400px;
    padding: 8px;
    margin: 8px;
    border-radius: 8px;
    border: 1px #444444 solid;
    background: #33333382;
    transition: 0.5s;
}
form input:hover {
    background: #a3a3a382;
    width: 410px;
}

form ::placeholder {
    color: #dbd6d3;
}

input:invalid {
    background: white;
    outline: 2px #f00 solid;
}

.submitt {
    color: #dbd6d3;
    font-size: large;
}

.submitt:hover {
    color: #dbd6d37b;
}
form input:hover {
    background: #a3a3a382;
    width: 410px;
}

form ::placeholder {
    color: #666666;
}

.submitt {
    color: #dbd6d3;
    font-size: large;
}

.submitt:hover {
    color: #dbd6d37b;
}

input:focus:invalid {
  background: pink;
  outline: 2px #f00 solid;
}
input:focus:valid {
    background: rgba(187, 255, 178, 0.351);
    outline: 2px #0f0 solid; 
}
input:valid {
  outline: none; 
}
input:invalid {
  background: rgba(255, 178, 178, 0.346);
  outline: 2px #f00 solid;
}

@media screen and (max-width:1170px){
    form {
        width: 500px;
    }
    .wrap img {
        height: 100vh;
        width: 368px;
    }
    
}
@media screen and (max-width:870px){
    
    form {
        width: 450px;
    }
    form input:hover {
        width: 260px;
    }
    form    input {
        width: 250px;
    }
}
@media screen and (max-width:700px){
    .forma {
        position: absolute;
        margin: 0 auto;
        top: 15%;
    }
    .block-img-form img {
        right: 15px;
    }
    form {
        width: 350px;
    }
    .wrap img {
        width: 100%;
    }
    .block-img-form {
        position: relative;
        right: 200px;
    }
}
@media screen and (max-width: 450px) {
    .forma {
        width: 300px;
        margin: 25px;
    }
    form input {
        width: 200px;
        padding: 5px;
        margin: 5px;
    }
    form input:hover {
        width: 210px;
    }

}
