/* ============================================================
   EasePay — Shared Design Tokens (fintech theme)
   One source of truth for color, radius, shadow, spacing.
   Individual pages layer their own CSS (login.css, signup.css,
   airtime.css, data.css, etc.) on top of these variables.
   ============================================================ */
:root{
  /* Brand (falls back to the DB site_color where a page sets --site-clr inline) */
  --site-clr: #0B1F8C;
  --brand-900: #060F4A;
  --brand-800: #0A1B75;
  --brand-700: #0B1F8C;
  --brand-600: #1B34B8;
  --brand-500: #2E48D6;
  --brand-accent: #3D5CFF;

  /* Neutrals */
  --ink-900: #10142B;
  --ink-700: #363A56;
  --ink-500: #6B7190;
  --ink-300: #9298B8;
  --ink-100: #E5E7F2;
  --ink-50:  #F5F6FB;
  --white: #ffffff;

  /* Semantic */
  --success: #16B364;
  --success-bg: #E7F9EF;
  --error: #EF4444;
  --error-bg: #FDECEC;
  --warning: #F59E0B;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(16, 20, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 20, 43, 0.10);
  --shadow-lg: 0 16px 40px rgba(16, 20, 43, 0.14);
  --shadow-brand: 0 10px 24px rgba(11, 31, 140, 0.28);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Type */
  --font: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
body{ font-family: var(--font); }

/* Reusable primitives any page can use */
.ep-input-group{
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: 0 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ep-input-group:focus-within{
  border-color: var(--brand-accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(61, 92, 255, 0.10);
}
.ep-input-group i{ color: var(--ink-300); font-size: 15px; width: 20px; text-align: center; }
.ep-input-group input, .ep-input-group select{
  border: none; outline: none; background: transparent;
  flex: 1; padding: 14px 10px; font-size: 14.5px; color: var(--ink-900); font-family: var(--font);
}
.ep-btn-primary{
  width: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-clr) 0%, var(--brand-accent) 100%);
  box-shadow: var(--shadow-brand);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s ease, box-shadow .15s ease, opacity .15s ease;
}
.ep-btn-primary:active{ transform: translateY(1px) scale(0.99); }
.ep-btn-primary:disabled{ opacity: 0.65; cursor: not-allowed; }

.ep-toast{
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-width: 92vw;
}
.ep-toast.show{ transform: translateX(-50%) translateY(0); }
.ep-toast.success{ background: var(--success); }
.ep-toast.error{ background: var(--error); }
