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: 0;
}

.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-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.auth-card {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.auth-header {
  margin-bottom: 22px;
  text-align: center;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.auth-header p {
  margin: 0;
  color: #6b7280;
}

.auth-eyebrow {
  margin-bottom: 8px !important;
  color: #b45309 !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
}

.field-validation-error {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.admin-panel {
  padding: 32px 0;
}

.admin-hero {
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.admin-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
}

.admin-hero p {
  margin: 0;
  color: #6b7280;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.admin-tile {
  display: block;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  color: #111827;
  text-decoration: none;
  background: #fff;
}

.admin-tile:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.admin-tile span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.admin-page-header h1,
.admin-form h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.admin-page-header .btn {
  white-space: nowrap;
  padding: 0.5rem 1rem !important;
  font-size: 14px !important;
}

.admin-table-wrap,
.admin-form {
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.admin-form {
  width: min(100%, 640px);
  margin: 28px auto;
}

.admin-form-wide {
  width: min(100%, 920px);
}

.admin-form h1 {
  margin-bottom: 20px;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.admin-product-cell img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
}

.admin-product-cell span {
  display: block;
  max-width: 360px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-muted {
  display: block;
  color: #6b7280;
  font-size: 14px;
}
