/* ==========================================================================
   Albalagh Panel — Auth & Setup Styles (auth.css)
   ========================================================================== */

:root {
  --primary: #047857;
  --primary-dark: #064e3b;
  --font-urdu: 'MeherNastaliq', 'Noto Nastaliq Urdu', 'Gulzar', system-ui, sans-serif;
}

body.auth-body {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  background: #f3f4f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #1f2937;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  padding: 36px;
  border: 1px solid #e5e7eb;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 15px;
  color: #6b7280;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #f9fafb;
}

.password-input-wrapper input {
  padding-left: 42px; /* space for the eye toggle in RTL */
}

.password-toggle-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.auth-btn:hover {
  background: var(--primary-dark);
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  display: none;
}

.auth-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
  display: block;
}

.auth-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  display: block;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.auth-footer a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.setup-steps-badge {
  display: inline-block;
  background: #ecfdf5;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
