/* Layout copied from mw-infra-aws-workspaces/landing; colours are The Rock's. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #17161c;
  --muted: #6b6b78;
  --line: #e3e3e9;
  --accent: #da291c;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --card: #17161b;
    --ink: #f3f2f6;
    --muted: #9b9aa8;
    --line: #2e2d38;
    --accent: #e4382b;
  }
}

* { box-sizing: border-box; }

/* An element rule like #gate { display: flex } would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}

/* Widened once the player is showing. */
.card.wide { max-width: 960px; }

.logo { width: 110px; height: auto; border-radius: 16px; display: block; margin: 0 auto 1.5rem; }
h1 { margin: 0 0 .4rem; font-size: 1.3rem; letter-spacing: -.01em; }
.sub { margin: 0 0 2rem; color: var(--muted); font-size: .9rem; }

#gate input {
  display: block;
  width: 100%;
  margin: 0 0 .75rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

#gate input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}

.btn:hover, .btn:focus-visible { opacity: .88; }

.alt { margin: 1.5rem 0 0; font-size: .85rem; color: var(--muted); }
#error { color: var(--accent); }

#player { margin-top: 1.5rem; }

#video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
}
