@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazir.eot');
  src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
  url('../fonts/Vazir.woff') format('woff'),
  url('../fonts/Vazir.ttf') format('truetype');
  font-weight: normal;
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: url('https://rasekhoon.net/_files/userfiles/1398/10531480837601363340.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* برای ثابت ماندن پس‌زمینه هنگام اسکرول */
  direction: rtl;
  min-height: 100vh;
}

.wrapper {
  width: 420px;
  max-width: 90%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 12px;
  padding: 30px 40px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wrapper h1 {
  font-size: 36px;
  text-align: center;
}

.wrapper .logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo-container img {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.wrapper .input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 25px 0;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  font-size: 16px;
  color: white;
  padding: 20px 50px 20px 20px;
  transition: all 0.3s ease;
}

.input-box input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-box .icon-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.input-box .icon-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.3s ease;
}

.input-box .icon-right:hover {
  color: white;
}

.wrapper .remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  margin: 15px 0 25px;
}

.remember-forgot label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-forgot label input {
  accent-color: #fff;
  width: 16px;
  height: 16px;
}

.forgot-link a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link a:hover {
  color: white;
  text-decoration: underline;
}

.wrapper .btn {
  width: 100%;
  height: 50px;
  background: white;
  border: none;
  outline: none;
  border-radius: 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 17px;
  color: #333;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.wrapper .btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wrapper .register-links {
  font-size: 14.5px;
  text-align: center;
  margin: 25px 0 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.register-links a:hover {
  color: white;
  text-decoration: underline;
}

.register-links .divider {
  color: rgba(255, 255, 255, 0.5);
}

/* استایل برای بخش اینماد در پایین صفحه */
.enamad-container {
  text-align: center;
  margin: 40px auto 20px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
}

.enamad-container a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.enamad-container a:hover {
  transform: scale(1.05);
}

.enamad-container img {
  max-width: 130px;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

/* responsive design */
@media (max-width: 480px) {
  .wrapper {
    padding: 25px 30px;
    margin: 30px auto;
  }
  
  .enamad-container {
    margin: 30px auto 15px;
  }
  
  .enamad-container img {
    max-width: 110px;
  }
  
  .logo-container img {
    max-width: 150px;
  }
}

@media (max-height: 700px) {
  body {
    padding: 20px 15px;
  }
  
  .wrapper {
    margin: 20px auto;
  }
}