body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "IRANYekanWeb", Tahoma, sans-serif;
  /* گرادینت پزشکی آرام */
  background: #fff;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: hsla(209, 100%, 50%, 0.4);
  /* میزان تیرگی */
  z-index: -1;
}

@font-face {
  font-family: "IRANYekanWeb";
  src:
    url("../../../assets/fonts/IRANYekanWeb.woff") format("woff2"),
    url("../../../assets/fonts/IRANYekanWeb.woff") format("woff"),
    url("../../../assets/fonts/d32g_iranyekanwebregular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.bac_login {
  direction: rtl;
  width: 1000px;
  height: 530px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 25px;
  background: #008bc7;
  box-shadow: 0px 0px 150px 5px #0062a8;
  overflow: hidden;
}

.img_login {
  width: 60%;
  height: 100%;
}

.img_login img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box_login {
  padding: 30px;
  width: 40%;
  height: 500px;
  background: #3333337a;
}

.box_login p {
  font-size: 15px;
  margin-bottom: 65px;
  color: #eee;
}

.title_login {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.title_login h3 {
  text-align: right;
  margin: 12px 0;
  color: #fff;
}

.line_title_login {
  width: 130px;
  height: 3px;
  border-radius: 3px;
  background: #00a1e7;
}

.box_login label {
  display: block;
  padding-bottom: 10px;
  color: #fff;
}

.box_login input {
  font-family: "IRANYekanWeb", Tahoma, sans-serif;
  text-align: left;
  font-size: 17px;
  width: 345px;
  height: 45px;
  padding: 0 15px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 2px solid #00a1e7;
  color: #333;
  outline: none;
}

.box_login button {
  font-family: "IRANYekanWeb", Tahoma, sans-serif;
  text-align: center;
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 10px;
  background: #00a1e7;
  color: #fff;
  outline: none;
  border: none;
  cursor: pointer;
  transition: 0.4s;
}

.box_login button:hover {
  transform: scale(1.03);
  background: #0594d1;
}

.error-message {
  position: absolute;
  text-align: center;
  font-size: 14px;
  display: flex;
  margin-top: -45px;
  color: #ff0000;
  background: aliceblue;
  border-radius: 5px;
  padding: 6px 5px;
  width: 365px;
  justify-content: center;
}

@media (max-width: 768px) {
  .bac_login {
    width: 100%;
    height: 100vh;
    display: flex;
    border-radius: 0;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: none;
  }

  .tag_form {
    width: inherit;
  }

  .box_login {
    padding: 0 30px;
    width: 90%;
    height: 100vh;
    background: #3333337a;
  }

  .box_login input {
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
  }

  .img_login {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .box_login button {
    padding: 10px;    
    width: 110%;
    margin-top: 5px;
  }

  .error-message {
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    font-size: 15px;
    display: flex;
    color: #ff0000;
    background: #f0f8ffad;
    backdrop-filter: blur(3px);
    border-radius: 0;
    padding: 15px 5px;
    margin: 0;
  }

  .box_login p {
    margin-bottom: 30px;
  }

  .box_login label{
    font-size: 14px;
  }

}
