/* =====================================================
   The BriefBrief — Managed Intelligence (MI)
   Purpose: Professional, calm, analyst-facing layout
   ===================================================== */

:root {
  --bg-main: #f6f7f9;
  --bg-panel: #ffffff;
  --border-subtle: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --accent: #667eea;
  --accent-dark: #5568d3;
}

/* Global reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
.mi-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.mi-header-inner {
  max-width: 90vw;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mi-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.mi-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-secondary);
}

.mi-nav a:hover {
  color: var(--accent);
}

/* Page container */
.mi-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Hero */
.mi-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.mi-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 900px;
}

/* Section */
.mi-section {
  margin-top: 4rem;
}

.mi-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.mi-section p {
  max-width: 850px;
  color: var(--text-secondary);
}

/* Panels */
.mi-panel {
  margin-top: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
}

/* Screenshots */
.mi-screenshot {
  margin-top: 1.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mi-screenshot img {
  width: 100%;
  display: block;
}

body.app-bg {
  background:
    linear-gradient(
      rgba(245, 247, 251, 0.92),
      rgba(245, 247, 251, 0.92)
    ),
    url("/static/images/Mazar-e-Sharif_web.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Callout / emphasis */
.mi-callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: #f9fafb;
  color: var(--text-secondary);
}

/* Footer */
.mi-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
/* =========================
   MI Login Form (Edge-safe)
   ========================= */

.mi-login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mi-login-form input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.mi-login-form button {
  display: inline-block;
  margin-top: 0.5rem;
}
