html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: #f6f7f9;
  color: #1f2933;
  margin-bottom: 60px;
}

a {
  color: #2563eb;
}

.app-shell {
  min-height: 100vh;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e1e7ef;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
}

.navbar-brand {
  color: #111827;
  font-weight: 700;
}

.app-main-container {
  padding-bottom: 2rem;
}

.app-footer {
  background: #fff;
  border-top: 1px solid #e1e7ef;
}

.navbar-auth {
  align-items: flex-start;
}

.navbar-auth-form {
  margin: 0;
}

.navbar-auth-button {
  border: 0;
}

@media (min-width: 576px) {
  .navbar-auth {
    align-items: center;
  }
}

.status-page {
  max-width: 960px;
  margin: 0 auto;
}

.status-page-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.status-page-eyebrow,
.login-eyebrow {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.status-page-header h1 {
  margin-bottom: 0;
  font-size: 2.1rem;
  font-weight: 750;
}

.status-page-header p {
  margin-bottom: 0;
  color: #5b6470;
}

.status-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.status-card {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  min-height: 260px;
  padding: 1.35rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
}

.status-card-current {
  border-color: #93c5fd;
}

.status-card-other {
  background: #fbfcfe;
}

.status-card-header {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.status-card-label {
  display: inline-block;
  border: 1px solid #d5deea;
  border-radius: 999px;
  color: #52606d;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.status-card h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
}

.status-badge {
  display: inline-block;
  border-radius: 8px;
  min-width: 8rem;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

.status-badge-working {
  background: #dcfce7;
  color: #166534;
}

.status-badge-not-working {
  background: #e5e7eb;
  color: #374151;
}

.status-badge-unknown {
  background: #fef3c7;
  color: #92400e;
}

.status-updated-at {
  margin: 1rem 0 0;
  color: #5b6470;
  font-size: 0.9rem;
}

.status-card-action {
  margin-top: 1.25rem;
  min-height: 2.75rem;
}

.status-toggle-form {
  margin: 0;
}

.status-toggle-button {
  min-height: 2.75rem;
  min-width: 10rem;
}

.login-page {
  display: grid;
  min-height: calc(100vh - 13rem);
  place-items: center;
}

.login-panel {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
  max-width: 440px;
  padding: 2rem;
  width: 100%;
}

.login-header {
  margin-bottom: 1.5rem;
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.login-header p {
  color: #5b6470;
  margin-bottom: 0;
}

.login-form .form-label {
  color: #374151;
  font-weight: 700;
}

.login-form .form-control {
  min-height: 2.75rem;
}

.login-button {
  min-height: 2.75rem;
  width: 100%;
}

.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 575.98px) {
  .app-navbar {
    margin-bottom: 1.25rem;
  }

  .status-page-header {
    display: block;
  }

  .status-page-header h1 {
    font-size: 1.8rem;
  }

  .status-card {
    min-height: 230px;
  }

  .login-page {
    min-height: auto;
    place-items: start;
  }

  .login-panel {
    padding: 1.35rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
