:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7f2;
  color: #162019;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(34, 121, 83, 0.08), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(90, 124, 112, 0.16), transparent 28%),
    repeating-linear-gradient(0deg, rgba(22, 32, 25, 0.04), rgba(22, 32, 25, 0.04) 1px, transparent 1px, transparent 28px),
    #eef3ef;
}

.home-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(34, 121, 83, 0.08), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(90, 124, 112, 0.16), transparent 28%),
    repeating-linear-gradient(0deg, rgba(22, 32, 25, 0.04), rgba(22, 32, 25, 0.04) 1px, transparent 1px, transparent 28px),
    #eef3ef;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d6ded8;
  box-shadow: 0 16px 36px rgba(22, 32, 25, 0.12);
}

.home-content {
  width: min(100%, 760px);
  padding: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d6ded8;
  box-shadow: 0 16px 36px rgba(22, 32, 25, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  color: #1e5b43;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.intro {
  margin: 12px 0 24px;
  color: #516157;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 10px;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.users-list {
  display: grid;
  gap: 12px;
}

.tracking-sections {
  display: grid;
  gap: 18px;
}

.tracking-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d6ded8;
  border-radius: 8px;
  background: #ffffff;
}

.tracking-section h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-intro {
  margin: 0;
  color: #516157;
  line-height: 1.4;
}

.user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d6ded8;
  border-radius: 8px;
  background: #ffffff;
}

.user-row div {
  display: grid;
  gap: 4px;
}

.user-row span {
  color: #516157;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aebaae;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: #162019;
  background: #ffffff;
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aebaae;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: #162019;
  background: #ffffff;
}

input:focus {
  outline: 3px solid rgba(34, 121, 83, 0.22);
  border-color: #227953;
}

select:focus {
  outline: 3px solid rgba(34, 121, 83, 0.22);
  border-color: #227953;
}

button {
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #227953;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  background: #516157;
}

.barcode-scanner {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.barcode-scanner[hidden] {
  display: none;
}

.barcode-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid #227953;
  border-radius: 8px;
  background: #162019;
  object-fit: cover;
}

.scanner-status {
  margin: 0;
  color: #516157;
  line-height: 1.4;
}

.scanner-stop-button {
  margin-top: 0;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: #1e5b43;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.message {
  min-height: 22px;
  margin: 8px 0 0;
  color: #9d2c2c;
  line-height: 1.4;
}

.message.success {
  color: #1e5b43;
}
