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 {
  margin-bottom: 60px;
  background: #f5f7f4;
  color: #1f2a24;
}

.navbar-brand { display: inline-flex; align-items: center; gap: .55rem; }
.navbar-logo { width: 38px; height: 38px; object-fit: contain; }

.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;
}

.auth-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(100%, 430px);
  padding: 2.25rem;
  border: 1px solid #e1e8e2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 55, 37, .08);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  object-fit: contain;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
}

.eyebrow {
  color: #1c7646;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}

.auth-card h1 { font-size: 2rem; font-weight: 750; }
.auth-card .btn-primary { background: #1c7646; border-color: #1c7646; }
.auth-card .btn-primary:hover { background: #155d37; border-color: #155d37; }
.back-link { color: #52645a; text-decoration: none; font-size: .9rem; }
.otp-input { font-size: 1.7rem; letter-spacing: .35em; text-align: center; }
.development-code { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: #eef8f1; border-radius: 12px; color: #155d37; }
.development-code strong { font-size: 1.2rem; letter-spacing: .12em; }
.validation-summary-valid { display: none; }

.welcome-panel { margin: 2.5rem 0 1.5rem; padding: 2.5rem; background: #fff; border-radius: 24px; border: 1px solid #e1e8e2; }
.welcome-panel h1 { font-weight: 750; }
.businesses-section { margin-bottom: 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: 1.55rem; font-weight: 750; }
.business-count { padding: .45rem .75rem; border-radius: 999px; background: #e7f4eb; color: #155d37; font-size: .82rem; font-weight: 700; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.business-card { display: flex; flex-direction: column; min-height: 290px; padding: 1.35rem; border: 1px solid #e1e8e2; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(25, 55, 37, .05); }
.business-card-header { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid #edf1ee; }
.business-mark { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #1c7646; color: #fff; font-size: 1.15rem; font-weight: 800; }
.business-type { display: block; margin-bottom: .2rem; color: #1c7646; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.business-card h3 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.business-details { display: grid; gap: .65rem; margin: 1rem 0; }
.business-details div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: .5rem; }
.business-details dt { color: #77857d; font-size: .78rem; font-weight: 600; }
.business-details dd { margin: 0; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.business-address dd { color: #536159; font-weight: 400; line-height: 1.45; }
.business-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid #edf1ee; color: #77857d; font-size: .78rem; }
.business-card-footer a { color: #1c7646; font-weight: 700; text-decoration: none; }
.business-message { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 2rem; border: 1px dashed #cbd8ce; border-radius: 20px; background: #fff; color: #66756c; text-align: center; }
.business-message strong { color: #26332b; font-size: 1.05rem; }
.business-message-icon { margin-bottom: .35rem; font-size: 2rem; }
.business-message-error { min-height: auto; align-items: flex-start; border-style: solid; border-color: #efc8c8; background: #fff5f5; color: #8a3737; text-align: left; }
.business-message-error strong { color: #762626; }

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

@media (max-width: 640px) {
  .auth-card { padding: 1.5rem; border-radius: 18px; }
  .welcome-panel { margin-top: 1.25rem; padding: 1.5rem; border-radius: 18px; }
  .section-heading { align-items: start; }
  .business-grid { grid-template-columns: 1fr; }
  .business-card { min-height: auto; }
}
