:root {
  color-scheme: dark;
  --bg: #10081a;
  --surface: rgba(36, 22, 49, 0.94);
  --inset: #160d22;
  --text: #fff8f1;
  --muted: rgba(255, 248, 241, 0.72);
  --accent: #bd8aff;
  --gold: #f2b36b;
  --error: #f55850;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(20, 8, 30, 0.72), rgba(0, 0, 0, 0.9)),
    url("../Apps/iOS/Sources/BlackmansClubhouseApp/Assets.xcassets/BlackmansOceanGroveStorefront.imageset/blackmans_ocean_grove_storefront.jpg") center / cover;
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(189, 138, 255, 0.4);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none;
}

.logo {
  max-width: 220px;
  width: 70%;
  justify-self: center;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

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

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(189, 138, 255, 0.42);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--inset);
  color: var(--text);
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--accent);
  color: #160d22;
  font: inherit;
  font-weight: 700;
}

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 248, 241, 0.18);
}

button:disabled {
  opacity: 0.55;
}

.status {
  min-height: 20px;
  margin: 0;
  color: var(--gold);
}

.status.error {
  color: var(--error);
}

#pass-qr {
  width: min(100%, 280px);
  height: auto;
  justify-self: center;
  padding: 12px;
  border-radius: 8px;
  background: white;
}

#pass-copy {
  margin: 0;
  color: var(--muted);
  text-align: center;
}
