:root {
  color-scheme: light;
  --ink: #193e30;
  --muted: #65746b;
  --green: #106947;
  --line: #dce3db;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f6f7f2;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-header, .site-footer { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.site-header { padding-block: 32px; display: flex; align-items: center; justify-content: center; }
.brand-logo { display: block; width: 282px; height: 38px; max-width: 85%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.login-layout { flex: 1; width: min(440px, calc(100% - 40px)); margin: 20px auto 48px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.login-card { padding: 38px 37px; border: 1px solid #e0e6dd; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px -18px #264b3220, 0 2px 4px #264b3203; }
.card-eyebrow { display: block; margin-bottom: 14px; color: #5e735f; font-size: 9px; font-weight: 650; letter-spacing: 1.9px; text-transform: uppercase; }
.card-heading h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.8px; line-height: 1.3; }
.card-heading > p { margin: 10px 0 30px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; margin-bottom: 9px; color: #344d3e; font-size: 12px; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap input, .input-wrap select { width: 100%; height: 49px; padding: 0 43px; border: 1px solid #d9e0d6; border-radius: 8px; background: #fff; color: #243f30; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #66796b; opacity: 1; }
.input-wrap input:hover, .input-wrap select:hover { border-color: #a6b8a6; }
.input-wrap input:focus, .input-wrap select:focus { border-color: #397951; outline: 3px solid #39795120; outline-offset: 1px; }
.field-icon { position: absolute; left: 15px; top: 15px; width: 18px; height: 18px; color: #718875; pointer-events: none; }
.password-toggle { display: grid; place-items: center; position: absolute; right: 4px; top: 4px; width: 41px; height: 41px; border: 0; border-radius: 5px; background: transparent; color: #7e8f81; }
.password-toggle:hover { background: #f0f4ed; color: var(--green); }
.password-toggle svg { width: 19px; height: 19px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.input-wrap select { appearance: none; padding-right: 35px; font-size: 13px; text-overflow: ellipsis; }
.select-chevron { position: absolute; right: 12px; top: 16px; width: 17px; height: 17px; pointer-events: none; color: #738876; }
.field-hint { margin: 8px 0 0; font-size: 10px; color: #637565; line-height: 1.6; }
.business-field { margin-bottom: 25px; }
.submit-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font-size: 13px; font-weight: 600; transition: background .15s, transform .15s; }
.submit-button:hover { background: #0c573a; }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: .75; }
.submit-button svg { width: 17px; height: 17px; }
button:focus-visible { outline: 3px solid #4a8b62; outline-offset: 3px; }
.card-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 27px -37px 0; padding: 19px 16px; border-top: 1px solid #eef0ea; color: #61735f; font-size: 10px; }
.card-footer svg { width: 14px; height: 14px; }
.login-error { display: flex; gap: 9px; align-items: flex-start; margin: -8px 0 22px; padding: 12px; border: 1px solid #efdbd7; border-radius: 8px; background: #fff6f3; color: #9c3c2f; font-size: 12px; line-height: 1.6; }
.login-error svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; }
.site-footer { display: flex; justify-content: center; border-top: 1px solid #e0e6da; padding-block: 23px; color: #66735f; font-size: 10px; letter-spacing: .1px; }
.business-search { padding-right: 35px !important; text-overflow: ellipsis; }
.business-options { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; max-height: 218px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 25px #193e3015; }
.business-option { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 5px; color: #344d3e; font-size: 13px; cursor: pointer; }
.business-flag, .option-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #193e3012; }
.business-flag { position: absolute; z-index: 1; left: 14px; top: 16px; pointer-events: none; }
.has-business-flag > .field-icon { visibility: hidden; }
.option-flag, .option-flag-placeholder { flex: 0 0 22px; }
.business-option:hover { background: #f3f6ef; }
.business-option[aria-selected="true"] { background: #eaf2e8; color: #125434; }
.business-empty { margin: 0; padding: 12px 10px; color: var(--muted); font-size: 12px; }

@media (max-height: 800px) and (min-width: 851px) {
  .site-header { padding-block: 22px; }
  .login-layout { margin-top: 14px; margin-bottom: 28px; }
  .login-card { padding-top: 28px; }
  .card-heading > p { margin-bottom: 22px; }
  .form-field { margin-bottom: 18px; }
  .business-field { margin-bottom: 20px; }
  .card-footer { margin-top: 20px; padding-block: 16px; }
  .site-footer { padding-block: 18px; }
}

@media (min-width: 1440px) {
  .login-layout { margin-top: 28px; margin-bottom: 64px; }
}
@media (max-width: 850px) {
  .site-header, .site-footer { width: calc(100% - 48px); }
  .site-header { padding-block: 25px; }
  .login-layout { width: min(440px, calc(100% - 40px)); margin: 26px auto 44px; grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 450px) {
  .site-header { gap: 12px; }
  .brand-logo { max-width: 85%; height: 31px; }
  .login-card { padding: 30px 25px; border-radius: 16px; }
  .card-heading h1 { font-size: 24px; }
  .card-footer { margin-inline: -25px; }
  .input-wrap input, .input-wrap select { font-size: 16px; }
  .site-footer { flex-wrap: wrap; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
