:root {
  color-scheme: dark;
  --bg: #090d18;
  --panel: #111827;
  --panel-soft: #182235;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --accent: #d71920;
  --accent-strong: #f0444c;
  --focus: #76a9ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(9, 13, 24, 0.84), rgba(9, 13, 24, 0.92)),
    url("../../assets/placeholders/boardroom-meeting.webp") center / cover fixed;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.auth-panel,
.api-check {
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.auth-panel {
  width: min(460px, 100%);
  padding: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-lockup.compact {
  margin-bottom: 0;
}

.admin-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #d71920 0%, #a91218 100%);
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-lockup.compact .admin-mark {
  width: 58px;
  height: 58px;
  font-size: 1.15rem;
}

.brand-lockup p,
.api-check p {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 0.9;
}

h2 {
  font-size: 1.15rem;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  padding: 13px 14px;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.status-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
}

.status-message.error {
  color: #ffb4b8;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.dashboard-header button {
  background: transparent;
  border: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-grid article {
  min-height: 104px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.84);
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.dashboard-grid span {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-grid strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.api-check {
  padding: 20px;
  overflow: hidden;
}

pre {
  overflow: auto;
  max-height: 320px;
  margin: 18px 0 0;
  padding: 16px;
  background: #050915;
  border: 1px solid var(--line);
  color: #cfe0ff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100% - 24px, 1120px);
    align-items: start;
  }

  .auth-panel {
    padding: 22px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
