/* Spec 121 § 8.7.1 — the Zekt Gate entry page.
   Plain CSS on purpose: this page is not in tailwind.config.js's content globs,
   so utility classes here would not exist in the pre-built bundle. */

body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  margin: 1rem;
  box-sizing: border-box;
}

.head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* A wide wordmark, not a square mark: pin the height and let the width follow the
   670x270 source so it is never squashed. mix-blend-mode: lighten drops the JPEG's
   near-black matte into the card behind it — anything darker than the card loses to
   the card, the green and white letters win — so the photo reads as a transparent logo
   without shipping a second asset. */
.logo {
  height: 1.75rem;
  width: auto;
  display: block;
  flex: none;
  mix-blend-mode: lighten;
}

/* Pushed to the right of the header by margin-left, not by a spacer: the heading beside it
   wraps to two lines on a phone, and a spacer would have to know that. */
.avatar {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex: none;
  border: 1px solid #2a2a2a;
}

h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }

h2 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }

p { line-height: 1.55; margin: 0 0 1rem; }

.muted { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

.muted .material-icons { vertical-align: middle; font-size: 1.1rem; color: #00ff88; }

.error { color: #ff4444; }

.figure {
  font-size: 2rem;
  font-weight: 700;
  color: #00ff88;
  margin: 0;
}

.figure-unit {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0.25rem 0 1rem;
}

.terms {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.rows { list-style: none; margin: 0 0 1rem; padding: 0; }

.rows li {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rows .meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

button {
  font: inherit;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

button:disabled { opacity: 0.5; cursor: default; }

.primary { background: #00ff88; color: #000; }

.secondary { background: transparent; color: rgba(255, 255, 255, 0.75); border-color: #2a2a2a; }

.danger { background: transparent; color: #ff4444; border-color: #3a2020; }

.small { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.spinning { animation: spin 1s linear infinite; display: inline-block; }

/* Spec 127 — the GitHub organisation choice. A whole row is the click target, and a taken
   organisation stays visible but dimmed: hiding it would leave "where is my organisation"
   unanswered. */
.choices li { padding: 0; }

.choice label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.choice input { accent-color: #00ff88; }

.choice.taken { opacity: 0.55; }

.choice.taken label { cursor: default; }

.muted a { color: #00ff88; }
