/* Posiqo shared theme — matches Flutter AppTheme exactly
   Primary:   #1B5EA6  (royal blue)
   Secondary: #F97316  (orange accent)
   Tertiary:  #0EA5C9  (teal)
   Dark bg:   #0D1B2A
   Dark surf: #162132
   Text:      #F0F6FF / #94A3B8 muted
   Font:      Inter (Google Fonts)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary:        #1B5EA6;
  --primary-light:  #3B82F6;
  --primary-dark:   #134480;
  --secondary:      #F97316;
  --tertiary:       #0EA5C9;
  --bg:             #0D1B2A;
  --bg-surface:     #162132;
  --bg-card:        #1E3A5F;
  --text:           #F0F6FF;
  --text-muted:     #94A3B8;
  --border:         rgba(27,94,166,0.25);
  --green:          #22C55E;
  --red:            #F87171;
  --radius-card:    16px;
  --radius-btn:     12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}
footer a { color: var(--primary-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,94,166,0.4); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline  { background: transparent; color: var(--primary-light); border: 2px solid var(--primary); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
}

/* ── Inputs ───────────────────────────────────────────────── */
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus { outline: none; border-color: var(--primary); }

/* ── Loading spinner ──────────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ──────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-primary { color: var(--primary-light); }
.text-secondary { color: var(--secondary); }

@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
}
