* {
  font-family: vazir, Arial;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* برای جلوگیری از اسکرول */
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.3s ease;
  z-index: -1; /* زیر محتوا قرار بگیرد */
}

.blurred-bg {
  filter: blur(8px);
}

.content {
  display: flex;
  width: 25%;
  justify-content: center;
  cursor: pointer;
  z-index: 1; /* بالاتر از بک‌گراند */
}

/* تصویر بک‌گراند برای دسکتاپ */
@media (min-width: 768px) {
  .background {
    background-image: url("../image/login-bg.jpg");
  }
}

/* تصویر بک‌گراند برای موبایل */
@media (max-width: 767px) {
  .background {
    background-image: url("../image/login-bg\(phone\).jpg");
  }
  .content {
    width: 80%;
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f4efea;
  color: #30431d;
  direction: rtl;
}

.container {
  max-width: 400px;
  width: 100%;
  padding: 20px;
  border: 2px solid #30431d;
  border-radius: 3rem 0.5rem 0.5rem;
  background-color: #eed1a4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.input-field {
  margin-bottom: 15px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #30431d;
  border-radius: 2rem;
  outline: none;
}

input:focus {
  border-color: #30431d;
  box-shadow: 0 0 5px rgba(48, 67, 29, 0.3);
}

.submit-button {
  width: 100%;
  padding: 10px;
  background-color: #30431d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #2a371a;
}

.error-message {
  color: red;
  font-size: 12px;
  display: none;
}
.success-message {
  color: green;
  font-size: 12px;
  display: none;
  position: absolute;
  bottom: -20px;
  left: 0;
}
.laws {
  display: -webkit-box;
  font-size: small;
  margin: 5px 15px 0 0;
}
.laws > input {
  accent-color: #2a371a;
}
.signin-login {
  font-size: small;
}

/* -------------------- */
@font-face {
  font-family: vazir;
  src: url(../fonts/Vazir.ttf);
}
