/* Login rules copied from client-onboarding/web/launch/reference.css. */
:root {
  --green: #00fb88;
  --green-dark: #163d2a;
  --green-soft: rgb(232, 246, 237);
  --ink: #151515;
  --muted: #606963;
  --line: #d9e0dc;
  --canvas: #f3f5f4;
  --white: #fff;
  --danger: #8a2424;
  --danger-soft: #fff0f0;
  --warning: #72510e;
  --warning-soft: #fff7dc;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
  --header-h: 76px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 34px;
  background: var(--green);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-left,
.site-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.logo-mark {
  display: inline-block;
  width: 62px;
  height: 31px;
}
.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.header-label,
.header-link {
  font-size: 14px;
}
.header-link {
  border: 0;
  background: transparent;
  padding: 0;
}
.header-link:hover {
  text-decoration: underline;
}
.header-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
body.login-mode {
  background: var(--green);
}
.login-shell {
  min-height: 100vh;
  background: var(--green);
  display: flex;
  flex-direction: column;
}
.login-top {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 54px;
}
.login-nav {
  display: flex;
  align-items: center;
  gap: 50px;
  font-size: 17px;
}
.login-nav button,
.login-nav a {
  border: 0;
  background: transparent;
  text-decoration: none;
}
.login-nav .outline {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 14px 28px;
}
.login-layout {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 54px 40px;
}
.login-layout > main {
  width: min(630px, 100%);
  min-width: 0;
  margin: 0;
}
.login-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 34px 38px;
  box-shadow: var(--shadow);
}
.login-card h1 {
  font-size: 34px;
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 10px;
}
.login-card .intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 0 54px 18px;
  font-size: 12px;
}
.login-footer p {
  margin: 0;
}
.login-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.login-help {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0 0;
  font-size: 14px;
}
.login-help a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stack {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  align-content: start;
}
.field > label {
  font-size: 15px;
  font-weight: 500;
}
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 47px;
  padding: 11px 12px;
  border: 1px solid #adb9b1;
  border-radius: 4px;
  background: #fff;
  outline: none;
  font-size: 16px;
}
textarea {
  min-height: 108px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 251, 136, 0.22);
}
input[readonly] {
  background: #f7f9f7;
  color: #4d5751;
}
input:disabled,
textarea:disabled {
  background: #f3f5f4;
  color: #7d8680;
}
small,
.muted {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.primary,
.secondary {
  min-height: 45px;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 500;
}
.primary {
  border: 0;
  background: var(--green-dark);
  color: #fff;
}
.primary:disabled {
  background: #a9b2ac;
  color: #f4f5f4;
  cursor: not-allowed;
}
.secondary {
  background: #fff;
  border: 1px solid #b6c0ba;
}
.status {
  padding: 14px 16px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  font-size: 14px;
  margin: 0 0 18px;
}
.status.error {
  background: var(--danger-soft);
  border-left-color: var(--danger);
  color: #6f1d1d;
}

/* Staff login adaptations follow the client login card. */
.login-card fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 18px;
}
.login-card #status:empty {
  display: none;
}
.portal-suffix {
  display: inline-flex;
  align-items: center;
  margin-left: 0.78em;
  padding-left: 0.88em;
  border-left: 1px solid rgba(21, 21, 21, 0.42);
  font-size: 0.58em;
  letter-spacing: 0.11em;
  font-weight: 600;
  vertical-align: 0.16em;
  white-space: nowrap;
}
.login-layout > main {
  width: min(630px, 100%);
}
.login-top {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-bottom: var(--chrome-top);
}
.staff-label {
  margin-right: auto;
}
.login-submit:disabled {
  cursor: not-allowed;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .login-layout {
    padding: 26px 18px 28px;
  }
  .login-card {
    padding: 26px 22px;
  }
  .login-card h1 {
    font-size: 30px;
  }
}
