/* Self-hosted Vazirmatn */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'),
       url('fonts/Vazirmatn-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2'),
       url('fonts/Vazirmatn-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'),
       url('fonts/Vazirmatn-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* General */
body, input, button, textarea {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-weight: 400;
  margin: 0;
  background: #f5f7fa;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  direction: rtl;
  text-align: right;
}


/* Login Container */
.login-container {
  width: 320px;
  padding: 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700; /* change 800 → 700 to match Google Fonts */
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  color: #222;
  letter-spacing: -0.5px;
  text-align: center;
}



/* Form Groups */
.form-group {
  margin-bottom: 15px;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 4px rgba(76,175,80,0.3);
}

/* Password Wrapper with Eye Icon */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-left: 40px;
}

#togglePassword {
  position: absolute;
  left: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #777;
}

#togglePassword:hover {
  color: #333;
}

/* Login Button */
button {
  font-weight: 500;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif; /* add fallback Tahoma */
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}


button:hover {
  background: #45a049;
}

/* Error Message */
.error-message {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}

::placeholder {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-weight: 400; 
  font-size: 15px;
  color: #999;
}

