:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #17241c;
  background: #f4f6f3;
  --green: #107a34;
  --line: #dfe6df;
  --muted: #536257;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

.topbar {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 0 max(22px, 4vw);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand img {
  display: block;
  width: 166px;
  height: auto;
}

.brand span {
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}

main {
  display: grid;
  justify-items: center;
  padding: clamp(32px, 9vw, 112px) 20px 40px;
}

.signin {
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 10px;
  background: #fff;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

form { margin-top: 27px; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: .875rem;
  font-weight: 600;
}

input, button { font: inherit; }

input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a8b9ad;
  border-radius: 6px;
  background: #fff;
  color: inherit;
}

#signin-code {
  max-width: 12rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .16em;
}

button {
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}

.primary {
  width: 100%;
  margin-top: 15px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
}

.primary:hover:not(:disabled) { background: #07612a; }
.primary:disabled { background: #426850; }

.code-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 12px;
  margin-top: 5px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.text-button:disabled {
  color: var(--muted);
  text-decoration: none;
}

button:disabled { cursor: default; }

input:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

input[aria-invalid="true"] { border-color: #a33125; }

.error:not(:empty) {
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid #ebc6be;
  border-radius: 6px;
  background: #fff5f2;
  color: #8a2417;
  font-size: .875rem;
}

.status:not(:empty) {
  margin-top: 5px;
  font-size: .875rem;
}

.session-note {
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}

@media (max-width: 420px) {
  .topbar { min-height: 72px; }
  .brand { gap: 14px; }
  .brand img { width: 145px; }
  .brand span { padding-inline-start: 14px; }
}
