* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #161616;
  background: #f4f6f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

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

.is-live .page {
  display: block;
  padding: 0;
}

.panel {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(20, 26, 33, 0.12);
  text-align: center;
}

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

p {
  margin: 0 0 22px;
  color: #5f6b7a;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  color: #fff;
  background: #1f6feb;
  cursor: pointer;
}

button:hover {
  background: #1557bd;
}

.error {
  margin: 12px 0 0;
  color: #a60000;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #8c99a8;
}

.live-view {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #101418;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #d8dee6;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: #d1242f;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}

.video-mount {
  min-height: 0;
  width: 100%;
  height: calc(100vh - 53px);
  display: grid;
  place-items: center;
  padding: 8px;
}

.video-mount video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media (max-width: 520px) {
  .login-form {
    grid-template-columns: 1fr;
  }
}
