:root {
  --bs-primary: #009db9;
  --bs-primary-rgb: 0, 157, 185;
  --bs-link-color: #009db9;
  --bs-link-hover-color: #2b5866;
  --bs-body-font-family: "Roboto", Arial, Helvetica, sans-serif;
  --bs-body-color: #2e2e2e;
  --sst-primary: #009db9;
  --sst-primary-dark: #2b5866;
  --sst-header: #2e2e2e;
  --sst-footer: #1e1e1e;
  --sst-gray: #d8d8d8;
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 88px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: #2e2e2e;
  background: #fff;
}

.sst-header {
  background: var(--sst-header);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  margin-bottom: 1.5rem;
}

.sst-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem 0.75rem;
}

.sst-logo-link {
  display: block;
  line-height: 0;
}

.sst-logo-link img {
  width: min(420px, 58vw);
  height: auto;
}

.sst-logo-link:hover {
  opacity: 0.9;
}

.sst-header-account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  color: #fff;
}

.sst-header-account a:not(.btn) {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.sst-header-account a:not(.btn):hover {
  color: var(--sst-primary);
}

.sst-hello {
  white-space: nowrap;
}

.sst-header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.65rem 1.5rem;
  border-top: 2px solid var(--sst-primary);
  border-bottom: 2px solid var(--sst-primary);
}

.sst-nav-pill {
  color: #fff;
  background: var(--sst-primary-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.375rem;
  padding: 0.35rem 0.75rem;
}

.sst-nav-pill:hover {
  color: #fff;
  background: var(--sst-primary);
}

.sst-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--sst-footer);
  color: #fff;
  padding: 1.25rem 0;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #009db9;
  --bs-btn-border-color: #009db9;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2b5866;
  --bs-btn-hover-border-color: #2b5866;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2b5866;
  --bs-btn-active-border-color: #2b5866;
  --bs-btn-focus-shadow-rgb: 0, 157, 185;
  font-weight: 700;
  border-radius: 0.375rem;
}

.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-primary {
  font-weight: 700;
  border-radius: 0.375rem;
}

.btn-outline-secondary {
  --bs-btn-color: #2b5866;
  --bs-btn-border-color: #009db9;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #009db9;
  --bs-btn-hover-border-color: #009db9;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2b5866;
  --bs-btn-active-border-color: #2b5866;
}

.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 157, 185, 0.35);
}

.form-control {
  border-radius: 0.375rem;
  border-color: var(--sst-gray);
}

.form-control::placeholder {
  color: #8a8a8a;
}

a {
  color: var(--sst-primary);
}

a:hover {
  color: var(--sst-primary-dark);
}

.auth-card {
  max-width: 420px;
  margin: 1.5rem auto 2rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--sst-gray);
  border-radius: 0.75rem;
}

.auth-card-wide {
  max-width: 640px;
}

.auth-card-admin {
  max-width: 960px;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.auth-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

.account-app {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sst-gray);
}

.account-app h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.auth-card .lead {
  font-size: 0.95rem;
  color: #646464;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.15rem 0.75rem;
}

.qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 1rem 0;
}

@media (max-width: 720px) {
  .sst-header-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem;
  }

  .sst-header-account {
    justify-content: flex-start;
  }
}
