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

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #eff5ef;
  color: #17372d;
  font: 15px/1.6 system-ui, sans-serif;
}

.login-card {
  width: min(100%, 420px);
  padding: clamp(20px, 6vw, 32px);
  border: 1px solid #d4e3d9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px #17372d12;
}

.back-link { color: #285d4d; text-underline-offset: 3px; }
h1 { margin: 12px 0 22px; font-size: 26px; }
form, #customer-code-fields { display: grid; gap: 8px; }
#customer-code-fields { margin-top: 6px; }
label { font-weight: 650; }
.phone-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

input, button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid #a9c2b5;
  border-radius: 9px;
  font: inherit;
}

input { width: 100%; padding: 8px 10px; color: inherit; font-size: 16px; }
button { padding: 8px 12px; color: #174d40; background: #edf5ef; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .63; cursor: default; }
#customer-submit { margin-top: 4px; border-color: #195848; background: #195848; color: #fff; }
:is(a, input, button):focus-visible { outline: 2px solid #216d59; outline-offset: 2px; }
#customer-login-status, .login-note { margin: 4px 0 0; font-size: 14px; color: #405e53; }
#customer-login-status[data-error] { color: #982b20; }
#customer-login-status:empty { display: none; }
