.auth-body {
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  cursor: auto;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 7, 0.92);
}

.auth-nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(88%) sepia(18%) saturate(900%) hue-rotate(5deg);
}

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-nav-links a {
  color: var(--text-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.auth-nav-links a:hover { color: var(--gold-lt); }

.auth-nav-user {
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.auth-btn-sm {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: var(--ink-0) !important;
  font-weight: 700;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-inline-form { display: inline; }

.auth-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: var(--text-xs);
}

.auth-hint a { color: var(--gold); }

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.admin-current-image {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-current-image img {
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.admin-current-image span {
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.admin-product-thumb {
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: block;
}

.admin-no-image {
  color: var(--text-dim);
}

.admin-table-products th,
.admin-table-products td {
  vertical-align: middle;
}

.auth-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: var(--text-sm);
}

.auth-sub a { color: var(--gold); }

.auth-form { display: grid; gap: 18px; }

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-md);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--ink-1);
  color: var(--text);
  font: inherit;
}

.auth-field textarea {
  resize: vertical;
  min-height: 100px;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: 2px solid rgba(212, 168, 83, 0.35);
  border-color: rgba(212, 168, 83, 0.45);
}

.auth-field-hint {
  display: block;
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.auth-field.is-invalid input,
.auth-field.is-invalid textarea {
  border-color: rgba(255, 139, 139, 0.55);
}

.auth-field.is-invalid input:focus,
.auth-field.is-invalid textarea:focus {
  outline-color: rgba(255, 139, 139, 0.35);
  border-color: rgba(255, 139, 139, 0.65);
}

.auth-error {
  display: block;
  margin-top: 6px;
  color: #ff8b8b;
  font-size: var(--text-xs);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: var(--ink-0);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-btn:hover { filter: brightness(1.05); }

.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.auth-switch a { color: var(--gold); font-weight: 600; }

.auth-alert {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 18px;
  font-size: var(--text-sm);
}

.auth-alert-success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #8ef0b3;
}

.auth-alert-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ffaaaa;
}

.auth-alert-info {
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.25);
  color: var(--gold-lt);
}

.auth-checks { display: grid; gap: 10px; }

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-md);
  font-size: var(--text-sm);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--ink-2);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.admin-table th {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--text-xs);
}

.admin-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 32px !important;
}

.admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-lt);
  text-transform: capitalize;
}

.admin-status.is-active { color: #8ef0b3; }
.admin-status.is-inactive { color: #ffaaaa; }

.admin-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

.admin-action-link {
  background: none;
  border: none;
  color: var(--gold);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.admin-action-danger { color: #ff8b8b; }

.auth-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: var(--text-xs);
}

.auth-stack {
  overflow: auto;
  margin: 16px 0;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--ink-1);
  color: #ffaaaa;
  font-size: 11px;
  white-space: pre-wrap;
}

.auth-card--db-error {
  max-width: 520px;
  text-align: left;
}

.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.auth-sub--lead {
  font-size: 1.05rem;
  line-height: 1.55;
}

.auth-error-hint {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(212, 168, 83, 0.35);
  background: rgba(212, 168, 83, 0.08);
  color: var(--text-md);
  font-size: 14px;
  line-height: 1.5;
}

.auth-error-hint strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-error-meta {
  margin: 16px 0;
  padding: 0;
  font-size: 13px;
}

.auth-error-meta div {
  margin-bottom: 10px;
}

.auth-error-meta dt {
  margin: 0 0 4px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-error-meta dd {
  margin: 0;
  color: var(--text-md);
}

.auth-error-meta code {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink-1);
  font-size: 12px;
}

.auth-error-details {
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.auth-error-details summary {
  cursor: pointer;
  color: var(--gold);
  margin-bottom: 8px;
}

.auth-error-actions {
  margin-top: 24px;
}

.auth-sub-highlight {
  color: var(--gold-lt);
  border-left: 3px solid rgba(212, 168, 83, 0.45);
  padding-left: 12px;
}

@media (max-width: 720px) {
  .auth-nav { padding: 16px 20px; max-width: 100%; overflow-x: hidden; }
  .auth-main { padding-left: 16px; padding-right: 16px; max-width: 100%; }
  .auth-grid-2 { grid-template-columns: 1fr; }
}
