/* NetSim Analytics theme for Dex's sign-in pages: the company website's font and colours
   (Dex's light theme, restyled; the font files are the app site's, served at /static/fonts). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

.theme-body {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --text: #1a1d23;
  --muted: #545b66;
  --line: #dde2ea;
  --brand: #305595;
  --brand-ink: #ffffff;
  /* the palette Dex's shared stylesheet reads for its home page */
  --dex-fg: var(--text);
  --dex-fg-muted: var(--muted);
  --dex-border: var(--line);
  --dex-accent: var(--brand);
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  .theme-body {
    --bg: #0f1218;
    --panel: #161b23;
    --text: #e8ebf0;
    --muted: #a7afbc;
    --line: #2a313c;
    --brand: #a3b8dc;
    --brand-ink: #0f1218;
    color-scheme: dark;
  }
}
.theme-body a { color: var(--brand); text-underline-offset: 2px; }

.theme-navbar {
  background-color: var(--panel);
  border-bottom: 1px solid var(--line);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.theme-navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.theme-navbar__logo { width: 28px; height: 28px; }

/* Dex's own min-width (320px) plus a gutter is wider than a phone: let it shrink instead */
.dex-container { color: var(--text); margin: 56px auto; padding: 0 16px; flex: 1 0 auto;
                 box-sizing: border-box; width: 100%; min-width: 0; max-width: 512px; }
.theme-panel { box-sizing: border-box; }
@media (max-width: 420px) { .dex-container { margin-top: 24px; } .theme-panel { padding: 24px 18px; } }

.theme-panel {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  padding: 32px;
}
.theme-heading { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.theme-intro { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 8px; }
.theme-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 20px 0 0; }
.theme-error { font-size: 14px; line-height: 1.5; background: var(--bg); border: 1px solid var(--line);
               border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; }

/* Dex's buttons keep their sizes; only the colours change */
.theme-btn-provider {
  background-color: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  max-width: 100%;
  width: 300px;
}
.theme-body .theme-btn-provider, .theme-body .theme-btn-provider:hover { color: var(--text); }
.theme-btn-provider:hover { border-color: var(--brand); }
/* the same white tile behind every provider's logo (Dex gives Microsoft's a blue one) */
.theme-btn-provider .dex-btn-icon { background-color: #ffffff; border-radius: 6px; }
.theme-btn--primary {
  background-color: var(--brand);
  border: none;
  color: var(--brand-ink) !important;
  min-width: 200px;
  padding: 8px 16px;
  text-decoration: none;
}
.theme-btn--primary:hover { filter: brightness(1.08); }
.theme-btn--success { background-color: #16a34a; color: #fff; width: 260px; }

.theme-form-row { display: block; margin: 14px auto; }
.theme-form-input {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: block;
  font-size: 14px;
  height: 40px;
  margin: auto;
  padding: 8px 12px;
  width: 260px;
}
.theme-form-input:focus { border-color: var(--brand); outline: none; }
.theme-form-label { font-size: 14px; font-weight: 500; margin: 4px auto; text-align: left; width: 260px; }
.theme-link-back { margin-top: 8px; }
.theme-remember-me { display: flex; align-items: center; gap: 8px; font-size: 14px; width: 260px; margin: 4px auto; }
.dex-subtle-text { color: var(--muted); }

.theme-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 20px 16px 28px;
  font-size: 13px;
}
.theme-footer a { color: var(--muted); }
