/**
 * استایل صفحه ورود و ثبت‌نام - بر اساس example/login-register
 * فونت و رنگ‌ها به صورت محلی
 */
:root {
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --error-500: #ef4444;
  --error-600: #dc2626;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  font-family: 'Vazirmatn', 'Shabnam', 'Vazir', Tahoma, sans-serif;
  color: var(--gray-800);
  direction: rtl;
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container h2 {
  margin-bottom: 2rem;
  font-weight: 800;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.form-group { position: relative; margin-bottom: 1.75rem; }

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(203, 213, 225, 0.5);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  font-size: 1rem;
  color: var(--gray-900);
  transition: all 0.3s ease;
  text-align: right;
  direction: rtl;
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.form-label {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--gray-500);
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -0.6rem;
  right: 0.75rem;
  font-size: 0.8rem;
  color: var(--primary-600);
  background: #fff;
  padding: 0 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

.toggle-text {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.toggle-form-btn {
  color: var(--primary-600);
  font-weight: 700;
  text-decoration: none;
  margin-right: 0.25rem;
}

.toggle-form-btn:hover { text-decoration: underline; }

.toggle-text a { color: var(--gray-700); text-decoration: none; }
.toggle-text a:hover { text-decoration: underline; }

/* آلرت در صفحه لاگین */
.form-container .alert { margin-bottom: 1rem; }
