    /* Reset و پایه */
@font-face {
  font-family: 'IRANSans';
  src: url('/fonts/IRANSans.woff2') format('woff2'),
       url('/fonts/IRANSans.woff') format('woff'),
       url('/fonts/IRANSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'IRANSans', sans-serif;
        } 
    
    :root {
      --primary: #4f46e5;
      --primary-dark: #4338ca;
      --error: #dc2626;
      --success: #16a34a;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-500: #6b7280;
      --gray-700: #374151;
      --gray-900: #111827;
    }
    
    body {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      line-height: 1.5;
      background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
      min-height: 100vh;
      color: var(--gray-900);
      padding: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    /* کارت ورود */
    .login-card {
      background: white;
      border-radius: 1rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      width: 100%;
      max-width: 28rem;
      padding: 1.5rem;
      transition: all 0.3s ease;
    }
    
    .login-card:hover {
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    /* تایپوگرافی */
    h1 {
      font-size: 1.5rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 1.5rem;
      color: var(--gray-900);
    }
    
    .text-sm {
      font-size: 0.875rem;
    }
    
    .text-center {
      text-align: center;
    }
    
    /* فرم */
    .form-group {
      margin-bottom: 1rem;
    }
    
    label {
      display: block;
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
      color: var(--gray-700);
      font-weight: 500;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"] {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid var(--gray-200);
      border-radius: 0.5rem;
      font-size: 1rem;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }
    
    /* دکمه‌ها */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      text-decoration: none;
    }
    
    .btn-primary {
      background-color: var(--primary);
      color: white;
      width: 100%;
    }
    
    .btn-primary:hover {
      background-color: var(--primary-dark);
    }
    
    /* پیام خطا */
    .alert-error {
      background-color: #fee2e2;
      color: var(--error);
      padding: 1rem;
      border-radius: 0.5rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: flex-start;
    }
    
    /* جداکننده */
    .divider {
      display: flex;
      align-items: center;
      margin: 1.5rem 0;
    }
    
    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      border-bottom: 1px solid var(--gray-200);
    }
    
    .divider-text {
      padding: 0 1rem;
      color: var(--gray-500);
      font-size: 0.875rem;
    }
    
    /* لینک‌ها */
    .link {
      color: var(--primary);
      text-decoration: none;
      transition: color 0.2s;
    }
    
    .link:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }
    
    /* آیتم‌های فرم */
    .form-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 1rem 0;
    }
    
    .checkbox-label {
      display: flex;
      align-items: center;
      cursor: pointer;
    }
    
    input[type="checkbox"] {
      margin-left: 0.5rem;
    }
    
    /* واکنشگرایی */
    @media (max-width: 640px) {
      .login-card {
        padding: 1.25rem;
      }
      
      .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }
    }