body {
  font-family: "Vazir", Arial, sans-serif;
  margin: 0;
}

/* صفحه اصلی (ایندکس) */
body.index-page {
  background: #0C2B4E;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  direction: rtl;
}

.form-container {
  background: #fff;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.link-list li {
  margin: 10px 0;
}

.link-list a {
  display: block;
  text-decoration: none;
  background-color: #4a90e2;
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.link-list a:hover {
  background-color: #357abd;
  transform: translateY(-1px);
}

/* فرم‌های عمومی */
h2 {
  margin-bottom: 20px;
  color: #333;
}

.register-page body,
.login-page body {
  background: #0C2B4E;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.register-container,
.login-container {
  background: #fff;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  direction: rtl;
}

.form-group {
  margin-bottom: 15px;
}

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

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.4);
}

button[type="submit"] {
  width: 100%;
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 5px;
}

button[type="submit"]:hover {
  background-color: #357abd;
}

.back-link,
.register-link {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
}

.back-link a,
.register-link a {
  color: #4a90e2;
  text-decoration: none;
}

.back-link a:hover,
.register-link a:hover {
  text-decoration: underline;
}

/* پیام موفقیت ثبت‌نام */
.message-page body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: #f5f5f5;
}

.message {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.success {
  color: #28a745;
  font-size: 18px;
  margin-bottom: 10px;
}

.redirect {
  color: #666;
  font-size: 14px;
}


