:root {
  --bg: #f3f2ee;
  --card-bg: #ffffff;
  --text: #1f1f1d;
  --muted: #767570;
  --accent: #2f6f4f;
  --accent-dark: #23553c;
  --border: #e1ded3;
  --danger: #a3372b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
}

.card.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: inherit;
}

input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.video-wrap {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror biar berasa natural kayak ngaca */
}

button, .btn-link {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}

button:disabled {
  background: #c3cbc5;
  color: #767570;
  cursor: not-allowed;
}

button:not(:disabled):hover, .btn-link:hover { opacity: 0.9; }
button:not(:disabled):focus-visible, .btn-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin-top: 4px;
}

.indicator {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c3cbc5;
  transition: background-color 0.15s ease;
}

.indicator.active {
  background: var(--accent);
}

.status {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.link-back {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  text-decoration: none;
}

.link-back:hover { color: var(--text); }
