* {
  margin: 0;
  padding: 0;
  font-family: "Josefin Sans", sans-serif;
}
.bodyDoc {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  background-color: whitesmoke;
}
.blocks {
  display: flex;
}

.block {
  min-height: 100px;
  width: 50%;
  width: calc(50% + 2rem);
}

.block--left {
  clip-path: polygon(0 0, 100% 0, calc(100% - 3rem) 100%, 0% 100%);
}

.block--right {
  clip-path: polygon(3rem 0, 100% 0, 100% 100%, 0% 100%);
  margin-top: -3%;
}
.imgPart {
  width: 57%;
  background: url("img/img1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  transition-duration: 0.9s;
}
#container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 42%;
  align-items: center;
  background-color: transparent;
  overflow: hidden !important;
}

.login-container {
  position: relative;
  align-items: right;
  justify-content: right;
  display: flex;
  flex-direction: row;
  height: 70%;
  width: 100%;
}
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  width: 425px;
  border-radius: 25px;
  outline: none;
  border: none;
  right: 10%;
}
#logo {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 28vh;
  top: 0;
  width: 28vh;
}
#textSub {
  color: #4d664c;
  font-weight: 600;
  font-size: 15px;
  margin-top: 4%;
  margin-right: 15px;
}

.alink {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: end;
  width: 100%;
  margin-top: 10px;
}
.borderedForm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.16), 0 4px 6px rgba(0, 0, 0, 0.45);
  border-left-style: none;
}

.form-inputs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin-top: 13%;
}
.input-div {
  position: relative;
  width: 90%;
  display: grid;
  grid-template-columns: 7% 93%;
  margin: 25px 0;
  padding: 5px 0;
  border-bottom: 2px solid #faf9f9;
}
.login-container .input-div.username {
  margin-top: 0;
}
.i {
  display: flex;
  color: #4d664c !important;
  justify-content: center;
  align-items: center;
}
.i i {
  transition: 0.3s;
}
.login-container .input-div {
  position: relative;
  display: grid;
  grid-template-columns: 7% 93%;
  margin: 25px 0;
  padding: 5px 0;
  border-bottom: 2px solid #d9d9d9;
}
.input-div > div {
  position: relative;
  height: 45px;
}
.input-div > div > h5 {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #4d664c;
  font-size: 18px;
  transition: 0.3s;
}
.input-div.focus > div > h5 {
  top: -5px;
  font-size: 14px;
}

.input-div.focus > .i > i {
  color: #38d39f;
}

.input-div > div > input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  padding: 0.5rem 0.7rem;
  font-size: 16px;
  color: #e7efe7;
  font-family: "poppins", sans-serif;
}

.input-div.password {
  margin-bottom: 4px;
}
.btn {
  width: 116.5px;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: row;
  align-self: flex-end;
  height: 35.5px;
  border-radius: 2.8px;
  outline: none;
  border: none;
  background-color: #4d664c;
  background-size: 200%;
  font-size: 18px;
  color: #d9d9d9;
  font-weight: 800;
  margin: 1.2rem 0;
  cursor: pointer;
  transition: 0.5s;
  margin-top: 3%;
  margin-right: 13.2%;
 
}
.btn:hover {
  background-position: right;
  color: #fff;
}

.input-div:before,
.input-div:after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #092107;
  transition: 0.4s;
}
.input-div:before {
  right: 50%;
}
.input-div:after {
  left: 50%;
}
.input-div.focus:before,
.input-div.focus:after {
  width: 50%;
}
.input-div.focus > div > h5 {
  top: -5px;
  font-size: 18px;
}
.input-div.focus > .i > i {
  color: #0e250d;
}

.was-validated :invalid ~ .invalid-feedback {
  display: block;
  position: relative;
}

.invalid-feedback {
  display: none;
  left: -6%;
  position: relative;
  width: 135%;
  margin-top: 18%;
  font-size: 16px !important;
  color: #f32e45;
  font-weight: 700;
}

@media screen and (max-width: 1205px) {
  body {
    overflow: hidden;
  }
  .imgPart {
    width: 50%;
  }
  #container {
    width: 50%;
  }
  .login-container {
    width: 100%;
  }
  form {
    right: 0;
  }
}
@media screen and (max-width: 1090px) {
  #container {
    width: 60%;
  }
  .invalid-feedback {
    margin-top: 20%;
    font-size: 15px;
  }
}
@media screen and (max-width: 1005px) {
  #inputext {
    font-size: 15px;
  }
  .invalid-feedback {
    margin-top: 24%;
    margin-bottom: 3%;
    font-size: 14px !important;
  }
  .login-container {
    height: 90%;
    width: 93%;
    margin-top: 15%;
  }
  form {
    width: 100%;
    height: 85vh;
    right: -1%;
  }
}

@media screen and (max-width: 670px) {
  .invalid-feedback {
    margin-top: 21%;
  }
  #container {
    overflow: hidden !important;
  }
  #logo {
    height: 25vh;
    width: 25vh;
  }

  .blocks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .block {
    width: 100%;
    height: 100vh;
  }
  .login-container {
    width: 95%;
  }
  .borderedForm {
    margin-top: 0.5rem;
  }
  #container {
    background-color: transparent;
    width: 90%;
  }
  .block--left {
    display: none;
    width: 0;
  }
  .block--right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}
@media screen and (max-width: 470px) {
  .invalid-feedback {
    margin-top: 24%;
  }
}
@media screen and (max-width: 435px) {
  .input-div > div > h5,
  .btn {
    font-size: 13px !important;
    width: 70px;
    height: 30px;
  }
  .invalid-feedback {
    font-size: 12px !important;
    margin-top: 25%;
  }
  .form-inputs {
    padding-top: 30px;
  }
  #container {
    width: 100%;
  }
}
@media screen and (max-width: 338px) {
  .invalid-feedback {
    font-size: 11px !important;
    left: -7%;
    margin-top: 30%;
  }
  .login-container {
    width: 98% !important;
  }
}
