/**
 * SwapKenya Unified Design System Tokens
 */
:root {
  /* Color Palette — Kenyan Educational Theme */
  --primary: #1B6B3A;
  --primary-dark: #0D4A25;
  --primary-light: #E8F5EE;
  --primary-muted: #2D8B4E;
  --primary-container: #1B6B3A;

  --secondary: #2C5282;
  --secondary-dark: #1A365D;
  --secondary-light: #EBF4FF;

  --tertiary: #C05621;
  --tertiary-light: #FFF5EB;

  --surface: #F7F6F2;
  --surface-low: #F3F2EE;
  --surface-card: #FFFFFF;
  --text-primary: #1A1A18;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border: #E2DDD5;

  --error: #DC2626;
  --error-bg: #FEE2E2;
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #D97706;
  --warning-bg: #FEF3C7;

  /* Typography Scale */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Container Max Width */
  --max-content-width: 1320px;
}

html, body {
  background-color: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Password Toggle Container Helper (DRY implementation) */
.pw-toggle-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pw-toggle-container input[type="password"],
.pw-toggle-container input[type="text"].input-pw-padded {
  padding-right: 2.75rem !important;
}

.pw-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  z-index: 5;
}

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

.pw-toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
