:root {
  --smpv-blue: #123d6a;
  --smpv-gold: #c79b34;
  --smpv-ink: #172033;
  --smpv-muted: #667085;
  --smpv-surface: #ffffff;
  --smpv-bg: #f5f7fb;
}

body {
  background: var(--smpv-bg);
  color: var(--smpv-ink);
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18, 61, 106, 0.94), rgba(14, 28, 51, 0.94)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.install-body {
  min-height: 100vh;
  background: #f5f7fb;
}

.install-header {
  max-width: 760px;
}

.install-card {
  background: #fff;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.install-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e6eaf1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.diagnostic-log {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  background: #111827;
  color: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-panel {
  width: min(100%, 440px);
  background: #fff;
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.brand-mark,
.brand-dot {
  display: inline-grid;
  place-items: center;
  background: var(--smpv-blue);
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  margin-right: 0.35rem;
  font-size: 0.8rem;
}

.btn-primary {
  --bs-btn-bg: var(--smpv-blue);
  --bs-btn-border-color: var(--smpv-blue);
  --bs-btn-hover-bg: #0e3156;
  --bs-btn-hover-border-color: #0e3156;
}

.auth-note {
  background: #f7f8fb;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--smpv-muted);
  font-size: 0.9rem;
}

.app-main {
  max-width: 1440px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.surface {
  background: var(--smpv-surface);
  border: 1px solid #e6eaf1;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.metric-card {
  padding: 1rem;
}

.metric-card span {
  display: block;
  color: var(--smpv-muted);
  font-size: 0.9rem;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.1;
  margin-top: 0.45rem;
}

.surface {
  overflow: hidden;
}

.surface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e6eaf1;
}

.security-list {
  margin: 0;
  padding: 1rem 1rem 1rem 2rem;
  color: var(--smpv-muted);
}

.security-list li + li {
  margin-top: 0.65rem;
}

@media (max-width: 991.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .page-heading {
    display: block;
  }

  .page-heading .badge {
    margin-top: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .install-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
