/* Import Dana Font - A beautiful and modern Persian font */
@import url('https://fonts.googleapis.com/css2?family=Dana:wght@400;500;700&display=swap');

:root {
  --primary-color: #0d6efd; /* A professional blue */
  --primary-color-dark: #0b5ed7;
  --text-color: #212529;
  --label-color: #495057;
  --border-color: #dee2e6;
  --bg-light: #f8f9fa;
  --error-color: #dc3545;
  /* Using the new font */
  --font-family: 'Dana', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background-color: #fff;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-container {
  display: flex;
  min-height: 100vh;
}

/* Branding Section */
.branding-section {
  flex: 1;
  background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=800');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.branding-content .logo {
  margin-bottom: 24px;
}

.branding-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.branding-content p {
  font-size: 1.1rem;
  max-width: 450px;
  opacity: 0.9;
  line-height: 1.7;
}

/* Form Section */
.form-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.form-wrapper {
  width: 100%;
  max-width: 420px;
}

.form-wrapper h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 30px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--label-color);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--label-color);
  pointer-events: none;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 45px 12px 15px; /* Padding for RTL icon */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-light);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.error {
  color: var(--error-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 5px;
  display: block;
  min-height: 1.2em;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.btn-submit:disabled {
  background-color: #a0c7ff;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-message { padding: 12px; text-align: center; border-radius: 8px; margin-top: 20px; }
.form-message.success { background-color: #d1e7dd; color: #0f5132; }
.form-message.error { background-color: #f8d7da; color: #842029; }

/* Responsive */
@media (max-width: 992px) {
  .branding-section {
    display: none;
  }
  .form-section {
    padding: 20px;
  }
}