/* Base reset and font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0f0f0f;
  color: #eee;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* Form Container */
.form-container {
  max-width: 420px;
  width: 100%;
  background: #1c1c1c;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.08);
  text-align: right;
  position: relative;
}

/* Heading */
.form-container h2 {
  color: #d4af37;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Input, Select, Date */
input, select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: #121212;
  border: 1px solid #333;
  border-radius: 10px;
  color: #eee;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  transition: border 0.3s ease;
}

input:focus, select:focus {
  border: 1px solid #d4af37;
  outline: none;
  background-color: #1a1a1a;
}

/* Date picker fix for Safari */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Buttons */
button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to left, #d4af37, #b48a22);
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

button:hover {
  transform: scale(1.03);
  background: #b48a22;
}

/* Error message */
.status-text {
  background: #c0392b;
  color: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
}

/* Helper text */
small {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #bbb;
}

/* Bottom login link */
.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #999;
}

.login-link a {
  color: #d4af37;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #ffd700;
}
