:root {
  --green-main: #2e7d32;
  --green-light: #43a047;
  --green-dark: #004D40;
  --green-mid: #388e3c;
}

@font-face {
  font-family: 'BNazanin';
  src: url('BNazanin.woff') format('woff');
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: 'Vazir', 'BNazanin', Tahoma, sans-serif;
  background: linear-gradient(to right, #e6f2ff, #f9fcff);
  background-image: url('https://cdn-icons-png.flaticon.com/512/2947/2947763.png');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 120px;
  direction: rtl;
  padding: 30px;
  margin: 0;
}

form {
  max-width: 600px;
  margin: auto;
  padding: 25px 30px;
  background-color: #ffffffee;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 16px;
  border: 1px solid #c0defb;
  animation: slideUp 0.8s ease
}

h1, p {
  text-align: center;
  color: #004080;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #003366;
}

input, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #b0cde8;
  border-radius: 8px;
  box-sizing: border-box;
  margin-top: 5px;
}

input:focus, select:focus {
  border-color: #0066cc;
  outline: none;
  background-color: #f0f8ff;
}

input[readonly] {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

input[type="submit"],
#welcome-page button {
  background-color: var(--green-main);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

input[type="submit"]:hover,
#welcome-page button:hover {
  background-color: var(--green-light);
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

input[type="submit"]:active,
#welcome-page button:active {
  transform: scale(0.97);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) inset;
}


@media (max-width: 600px) {
  form {
    padding: 20px 16px;
  }
  .form-title {
    font-size: 1.8rem;
  }
  .form-subtitle {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}