/* ============================================================
   css/components.css — shared components
   Consumes tokens from css/main.css only — no raw hex here.
   Class names are a stable contract with the HTML/JS: restyle,
   never rename.
   ============================================================ */

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--px-desktop);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-box {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-box img { width: 38px; height: 38px; border-radius: var(--radius-md); object-fit: cover; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast) ease, background var(--transition-fast) ease;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-bg-muted); }
.nav-links a.active { color: var(--color-primary); font-weight: 600; background: var(--blue-50); }
.nav-cta {
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius-md);
  padding: 10px 20px; font-size: 0.9375rem;
  cursor: pointer; font-family: var(--font-sans); font-weight: 600;
  box-shadow: var(--shadow-primary);
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
}
.nav-cta:hover { background: var(--color-primary-hover); }
.nav-cta:active { transform: translateY(1px); }

/* ============================================
   BUTTONS — one language: 12px radius, 600 weight,
   primary glow, pressed = 1px sink
   ============================================ */
.btn-primary {
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius-md);
  padding: 15px 28px; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  box-shadow: var(--shadow-primary);
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease,
              box-shadow var(--transition-fast) ease;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { transform: translateY(1px); box-shadow: var(--shadow-xs); }
.btn-primary:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.btn-primary:disabled:hover { background: var(--color-primary); }

.btn-secondary {
  background: var(--color-bg-soft); color: var(--color-primary);
  border: 1.5px solid var(--blue-200); border-radius: var(--radius-md);
  padding: 15px 28px; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  box-shadow: var(--shadow-xs);
  transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease,
              transform var(--transition-fast) ease;
}
.btn-secondary:hover { background: var(--blue-50); border-color: var(--blue-500); }
.btn-secondary:active { transform: translateY(1px); }

.send-btn {
  width: 100%; margin-top: 22px;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius-md);
  padding: 16px; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-sans);
  min-height: 48px;
  box-shadow: var(--shadow-primary);
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
}
.send-btn:hover { background: var(--color-primary-hover); }
.send-btn:active { transform: translateY(1px); }

/* ============================================
   SECTION RHYTHM (marketing pages)
   ============================================ */
.section { padding: var(--space-24) var(--px-desktop); }
.section-center { text-align: center; max-width: 680px; margin: 0 auto var(--space-12); }
.section-label {
  font-family: var(--font-display);
  font-size: 0.8125rem; color: var(--color-primary); font-weight: 600;
  margin-bottom: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px; color: var(--color-text);
}
.section-sub { font-size: 1.0625rem; color: var(--color-text-muted); line-height: 1.7; }
.divider { border: none; border-top: 1px solid var(--color-border); margin: 0 var(--px-desktop); }

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition) ease, box-shadow var(--transition) ease,
              transform var(--transition) ease;
}
.feature-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-5);
  background: var(--blue-100);
  color: var(--color-primary);
}
/* Legacy tint variants — unified on the single brand accent */
.fi-blue, .fi-navy, .fi-sky, .fi-slate { background: var(--blue-100); color: var(--color-primary); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS STEPS
   ============================================ */
.how-strip { background: var(--color-bg-soft); padding: var(--space-24) var(--px-desktop); }
.steps-row {
  display: flex; gap: var(--space-6); max-width: 1100px; margin: 0 auto;
  align-items: flex-start; flex-wrap: wrap; justify-content: center;
}
.step { flex: 1; min-width: 160px; text-align: center; padding: 0 12px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-100); color: var(--color-primary);
  border: 1.5px solid var(--blue-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; margin: 0 auto 16px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  margin-top: 8px; margin-bottom: 8px; color: var(--color-text);
}
.step-desc  { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.65; }
.step-connector { font-size: 24px; color: var(--blue-300); padding-top: 16px; flex-shrink: 0; }

/* ============================================
   LANGUAGE PILLS
   ============================================ */
.lang-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.lang-pill {
  background: var(--color-bg-soft); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500; color: var(--color-text-mid);
}

/* ============================================
   CHAT DEMO (AI section on homepage)
   ============================================ */
.chat-demo {
  background: var(--color-bg-soft); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.chat-demo-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}
.chat-demo-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-100); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.chat-demo-name   { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--color-text); }
.chat-demo-status { font-size: 0.8125rem; color: var(--color-text-faint); }
.demo-msg-user {
  background: var(--color-primary);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px; font-size: 0.9375rem;
  margin-bottom: 12px; max-width: 85%;
  margin-left: auto; color: #fff;
  line-height: 1.55;
}
.demo-msg-bot {
  background: var(--color-bg-muted);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px; font-size: 0.9375rem;
  margin-bottom: 12px; max-width: 90%;
  color: var(--color-text); line-height: 1.6;
  border: 1px solid var(--color-border-light);
}
.demo-msg-bot strong { color: var(--color-primary); }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar { background: var(--blue-100); padding: var(--space-20) var(--px-desktop); text-align: center; }
.trust-stats { display: flex; justify-content: center; gap: 4.5rem; flex-wrap: wrap; }
.trust-stat-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700; color: var(--color-text);
}
.trust-stat-label { font-size: 1rem; color: var(--color-text-muted); margin-top: 8px; }

/* ============================================
   REMITTANCE CARD
   ============================================ */
.remit-card {
  background: var(--color-bg-soft); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.remit-label  {
  font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.remit-amount {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700; color: var(--color-text);
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.remit-flag   { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 22px; }
.remit-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.9375rem;
}
.remit-row:last-of-type { border-bottom: none; }
.remit-row-label { color: var(--color-text-muted); }
.remit-row-val   { font-weight: 600; color: var(--color-text); }
.blue-val        { color: var(--color-primary); }

/* ============================================
   STAT COUNTERS (hero)
   ============================================ */
.stat             { border-right: 1px solid var(--color-border); padding-right: 22px; }
.stat:last-child  { border-right: none; padding-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--color-text);
}
.stat-label { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 4px; }

/* ============================================
   HERO BADGE
   ============================================ */
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-bg-soft); color: var(--color-primary);
  border-radius: var(--radius-full); padding: 7px 15px;
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 28px;
  border: 1px solid var(--blue-200);
  box-shadow: var(--shadow-xs);
}

/* ============================================
   PHONE MOCKUP
   ============================================ */
.phone-frame {
  position: absolute;
  top: 91px;
  left: 75px;
  width: 312px;
  height: 588px;
  background: #FFFFFF;
  border-radius: 38px;
  overflow: hidden;
  padding: 19px 19px 55px;
  z-index: 1;
  border: 2px solid var(--color-border);
}
.phone-outline-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.phone-notch {
  width: 72px; height: 10px;
  background: var(--color-border); border-radius: 4px;
  margin: 0 auto 17px;
}
.phone-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-100); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.phone-title { font-size: 14px; font-weight: 600; color: var(--color-text); }
.phone-sub   { font-size: 12px; color: var(--color-text-faint); }
.chat-bubble-bot {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: 14px 14px 14px 3px;
  padding: 10px 13px; font-size: 13px;
  line-height: 1.5; color: var(--color-text);
  margin-bottom: 10px; max-width: 85%;
}
.chat-bubble-user {
  background: var(--color-primary);
  border: none;
  border-radius: 14px 14px 3px 14px;
  padding: 10px 13px; font-size: 13px;
  line-height: 1.5; color: #fff;
  margin-bottom: 10px; max-width: 85%; margin-left: auto;
}
.chat-send {
  width: 24px; height: 24px; background: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 12px;
}

/* ============================================
   FLOATING CARDS
   ============================================ */
.floating-card {
  position: absolute;
  border-radius: var(--radius-md);
  padding: 12px 16px; font-size: 12px;
  z-index: 10;
  min-width: 148px;
}
.floating-card-1 {
  top: 108px; right: -10px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}
.floating-card-2 {
  bottom: 180px; left: -10px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.fc-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-faint); margin-bottom: 4px; }
.fc-val   { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-text); }
.fc-sub   { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.floating-card-1 .fc-sub { color: var(--success); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--ink-900); padding: var(--space-16) var(--px-desktop) var(--space-10); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
  max-width: var(--container); margin-left: auto; margin-right: auto;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-brand p { font-size: 0.875rem; color: var(--blue-300); line-height: 1.6; margin-top: 10px; max-width: 240px; }
.footer-col h4  {
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col a   {
  display: block; font-size: 0.875rem; color: var(--blue-300);
  text-decoration: none; padding: 4px 0; margin-bottom: 4px;
  transition: color var(--transition-fast) ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom  {
  border-top: 1px solid rgba(169, 199, 255, 0.18); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: var(--container); margin: 0 auto;
}
.footer-copy { font-size: 0.8125rem; color: rgba(169, 199, 255, 0.65); }
.footer-lang-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--blue-300);
}
.footer-lang-note i { font-size: 16px; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; color: #fff;
}
.footer-logo-box  { width: 34px; height: 34px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.footer-logo-box img { width: 34px; height: 34px; object-fit: cover; border-radius: var(--radius-sm); }

/* ============================================
   HAMBURGER BUTTON (desktop: hidden)
   ============================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition) ease, opacity var(--transition) ease;
  pointer-events: none;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE NAV DROPDOWN (desktop: always hidden)
   ============================================ */
.mobile-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  padding: 4px 0 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  background: transparent;
}
.mobile-nav.is-open { display: flex; animation: mobileNavIn 0.2s var(--ease-out); }
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border-light);
  display: block;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a.active       { color: var(--color-primary); font-weight: 600; }
.mobile-nav-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  font-size: 1rem !important;
  padding: 14px 20px !important;
}

/* ============================================
   RESPONSIVE — 768 px and below
   ============================================ */
@media (max-width: 768px) {
  .nav            { padding: 12px var(--px-mobile); flex-wrap: wrap; }
  .nav-links      { display: none; }
  .nav-cta        { display: none; }
  .nav-actions    { display: none; }
  .nav-hamburger  { display: flex; }

  .footer         { padding: var(--space-10) var(--px-mobile); }
  .footer-top     { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; gap: 12px; align-items: flex-start; }

  .trust-bar      { padding: var(--space-12) var(--px-mobile); }
  .trust-stats    { gap: 2rem; }
  .trust-stat-num { font-size: 2.25rem; }
  .trust-stat-label { font-size: 0.875rem; }

  .steps-row      { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); }
  .step           { width: 100%; max-width: 300px; }

  .section        { padding: var(--space-12) var(--px-mobile); }
  .how-strip      { padding: var(--space-12) var(--px-mobile); }

  .feature-card   { padding: var(--space-6); }

  .remit-card     { padding: var(--space-6) var(--space-5); }
  .remit-amount   { font-size: 2rem; }
  .remit-row      { font-size: 0.875rem; }

  .demo-msg-user  { max-width: 100%; }
  .demo-msg-bot   { max-width: 100%; }
}

/* ============================================
   RESPONSIVE — 480 px and below (small Android phones)
   ============================================ */
@media (max-width: 480px) {
  .trust-stat-num   { font-size: 2rem; }
  .trust-stat-label { font-size: 0.8125rem; }
  .remit-amount     { font-size: 1.75rem; }
  .remit-card       { padding: 20px 16px; }
  .lang-pill        { font-size: 0.8125rem; padding: 7px 14px; }
  .how-strip        { padding: var(--space-12) 16px; }
  .section          { padding: var(--space-12) 16px; }
}

/* ============================================
   FINANCIAL TOOLKIT (resources.html)
   ============================================ */
.toolkit-section { padding: var(--space-12) var(--px-desktop) var(--space-10); }
.toolkit-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 320px)); justify-content: center; }
.toolkit-card {
  cursor: pointer;
  transition: transform var(--transition) ease, border-color var(--transition) ease,
              box-shadow var(--transition) ease;
}
.toolkit-card:hover { transform: translateY(-3px); }

@media (max-width: 768px) {
  .toolkit-section { padding: var(--space-10) var(--px-mobile) var(--space-8); }
}

/* ============================================
   ACCORDION
   Shared expand/collapse component (FAQ lists).
   ============================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}
.accordion-item:hover { border-color: var(--blue-200); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.accordion-trigger:hover { color: var(--color-primary); }
.accordion-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-primary);
  transition: transform var(--transition) ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-panel {
  overflow: hidden;
  max-height: 0;
}
.accordion-panel.show { max-height: none; }
.accordion-panel-inner p {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================
   AUTH FORM COMPONENTS
   Shared by auth pages (login.html, signup.html-style flows).
   ============================================ */
.auth-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.25;
}
.auth-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 26px;
  line-height: 1.5;
}

/* Form fields */
.auth-form-group {
  margin-bottom: 18px;
  position: relative;
}
.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-mid);
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  outline: none;
  min-height: 48px;
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}
.auth-input::placeholder { color: var(--color-text-faint); }
.auth-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-ring);
}
.auth-input.auth-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.15);
}

/* Inline error / success messages */
.auth-err, .auth-success {
  display: none;
  font-size: 0.8125rem;
  margin-top: 6px;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}
.auth-err   { color: var(--error); }
.auth-success { color: var(--success); }
.auth-err.show, .auth-success.show { display: flex; }
.auth-err i, .auth-success i { font-size: 15px; flex-shrink: 0; }

/* Password field with show/hide toggle */
.auth-pw-wrap { position: relative; }
.auth-pw-input { padding-right: 46px; }
.auth-pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--color-text-muted); cursor: pointer;
  padding: 10px;
  display: flex; align-items: center;
  font-size: 20px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.auth-pw-toggle:hover { color: var(--color-text); }

/* Forgot password link */
.auth-forgot-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* Primary submit button */
.auth-btn-primary {
  width: 100%;
  height: 52px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
  margin-top: 6px;
  -webkit-tap-highlight-color: transparent;
}
.auth-btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.auth-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.auth-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Spinner inside button */
.auth-spin {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border);
}
.auth-divider span { font-size: 0.875rem; color: var(--color-text-faint); white-space: nowrap; }

/* Social sign-in buttons */
.auth-social-row { display: flex; gap: 10px; }
.auth-btn-social {
  flex: 1; height: 50px;
  background: var(--color-bg-soft);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--color-text-mid);
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: border-color var(--transition-fast) ease, background var(--transition-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.auth-btn-social:hover { border-color: var(--blue-200); background: var(--blue-50); }
.auth-btn-social:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-btn-social svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .auth-title    { font-size: 1.625rem; }
  .auth-social-row { flex-direction: column; }
  .auth-btn-social { flex: none; width: 100%; }
}
