
body {
  background-color: #ECF0F6;
  min-width: 320px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

button, input, select {
  font: inherit;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}

.sub_container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  min-height: 540px;
  padding: 20px;
  gap: 0;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 12px 24px rgba(128, 128, 128, 0.08);
}

#mobile_explain {
  font-family: "vazir";
  text-align: justify;
  font-weight: 400;
  font-size: 13px;
  display: none;
  line-height: 1.8;
}

.sub_container img {
  border-radius: 18px;
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 32px;
}

.form h1 {
  font-family: "vazir", sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 0;
  text-align: center;
  color: #1e293b;
}

.form div {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.form div label {
  font-family: "vazir", sans-serif;
  font-weight: 300;
  font-size: 17px;
  margin-bottom: 7px;
}

.form div input,
.select {
  width: 100%;
  height: 58px;
  padding: 0 12px;
  color: #8897ad;
  background-color: #f7fbff;
  border: 1px solid #d4d7e3;
  border-radius: 12px;
  outline: none;
  font-family: "vazir", sans-serif;
  font-weight: 400;
  font-size: 17px;
  transition: all 0.3s ease;
}

.form div input::placeholder {
  color: #a7b1c2;
}

.form div input:focus,
.select:focus {
  border-color: #244371;
  box-shadow: 0 0 0 3px rgb(36 67 113 / 12%);
}

.ltr_input {
  direction: ltr;
}

.button {
  width: 100%;
  height: 58px;
  margin-top: 15px;
  color: #ffffff;
  background-color: #244371;
  border: none;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  font-family: "vazir", sans-serif;
  font-weight: 400;
  font-size: 17px;
  transition: all 0.3s ease;
}

.button:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background-color: #1a3256;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {

  .container {
    padding: 24px;
  }

  .sub_container {
    max-width: 880px;
    min-height: 500px;
    padding: 18px;
  }

  .sub_container img {
    width: 424px;
    height: 393px;
  }

  .form {
    width: 54%;
    padding: 24px;
  }

  .form h1 {
    font-size: 1.8rem;
  }

  .form div {
    margin-top: 13px;
  }

  .form div label {
    font-size: 16px;
    margin-bottom: 7px;
  }

  .form div input,
  .select,
  .button {
    height: 54px;
    font-size: 0.95rem;
  }

  .button {
    margin-top: 13px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {

  .container {
    padding: 20px;
  }

  .sub_container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    min-height: auto;
    padding: 24px;
    gap: 0;
    border-radius: 22px;
  }

  .sub_container img {
    display: none;
  }

  #mobile_explain {
    display: block;
  }

  .form {
    width: 100%;
    padding: 8px 5px;
  }

  .form h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .form div {
    margin-top: 15px;
  }

  .form div label {
    font-size: 16px;
    margin-bottom: 7px;
  }

  .form div input,
  .select,
  .button {
    height: 54px;
    font-size: 0.95rem;
  }

  .button {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {

  .container {
    padding: 12px;
  }

  .sub_container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: auto;
    padding: 16px 14px;
    gap: 0;
    border-radius: 18px;
  }

  .sub_container img {
    display: none;
  }

  #mobile_explain {
    display: block;
  }

  .form {
    width: 100%;
    padding: 6px 0;
  }

  .form h1 {
    margin-bottom: 8px;
    font-size: 1.35rem;
    text-align: center;
  }

  .form div {
    margin-top: 12px;
  }

  .form div label {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .form div input,
  .select,
  .button {
    height: 50px;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .button {
    margin-top: 12px;
  }
}
