:root {
  --bg: #0e1726;
  --bg-soft: #152238;
  --panel: rgba(12, 22, 39, 0.88);
  --line: rgba(163, 190, 255, 0.18);
  --text: #eef3ff;
  --muted: #8ba2c8;
  --accent: #54d2a0;
  --accent-strong: #2fbf85;
  --danger: #ff7979;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 210, 160, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(114, 170, 255, 0.16), transparent 22%),
    linear-gradient(135deg, #09111d, #13213b 48%, #10233d);
  min-height: 100vh;
}

.auth-page,
.auth-shell {
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(9, 17, 29, 0.72);
  box-shadow: var(--shadow);
}

.content {
  display: grid;
  gap: 24px;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

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

input,
textarea,
button {
  border-radius: 14px;
  border: 1px solid rgba(139, 162, 200, 0.22);
  background: rgba(10, 17, 31, 0.74);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(84, 210, 160, 0.35);
  border-color: transparent;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07141f;
  font-weight: 700;
}

button.secondary {
  background: transparent;
  color: var(--text);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.status-card,
.item-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(18, 30, 50, 0.82);
}

.status-card strong,
.item-card strong {
  display: block;
  margin-bottom: 6px;
}

.qr-box {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.qr-box img {
  width: min(280px, 100%);
  padding: 16px;
  border-radius: 20px;
  background: #fff;
}

.notice {
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 22, 37, 0.9);
}

.notice.error {
  border-color: rgba(255, 121, 121, 0.28);
  color: #ffd4d4;
}

.list {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
}

.hidden {
  display: none;
}

a {
  color: #9fd2ff;
}

code {
  font-family: "IBM Plex Mono", monospace;
}

@media (max-width: 980px) {
  .app-shell,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 16px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}

