@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background-color: #f5f7fb;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main {
  width: min(480px, 100%);
}

.intro h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.intro p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  color: #475467;
}

.scanner-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 35px 60px rgba(15, 23, 40, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

input {
  border: 1px solid #d0d7e3;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background-color: #f8fafc;
}

button {
  border: none;
  border-radius: 0.9rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

.status {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.preview {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #0f172a;
  height: 240px;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-guide {
  position: absolute;
  inset: 50%;
  width: 70%;
  height: 35%;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 1rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.2rem;
}

.hint {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
}

