:root {
  color-scheme: light;
  --login-ink: #17221b;
  --login-muted: #617068;
  --login-canvas: #f5f7f5;
  --login-surface: #ffffff;
  --login-border: #dce5df;
  --login-primary: #49785b;
  --login-primary-hover: #31513e;
  --login-primary-soft: #f0f7f2;
  --login-panel: #203d2b;
  --login-panel-muted: #c9dbcf;
  --login-danger: #b42318;
  --login-danger-soft: #fff4f2;
  --login-demo: #8a4b08;
  --login-demo-soft: #fff8eb;
  --login-radius: 12px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--login-canvas);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--login-ink);
  background: var(--login-canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--login-primary-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-skip {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--login-panel);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}

.login-skip:focus {
  transform: translateY(0);
}

.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background: var(--login-panel);
}

.login-identity::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .14;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.login-identity__content {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.tenant-mark {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 14px;
  color: var(--login-panel);
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 27, 14, .18);
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.tenant-mark--image {
  padding: 7px;
}

.tenant-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tenant-heading__label,
.login-card__context {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
}

.tenant-heading__label {
  color: var(--login-panel-muted);
}

.tenant-heading h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.tenant-introduction,
.workspace-note {
  display: none;
}

.login-access {
  display: grid;
  align-items: center;
  padding: clamp(32px, 8vw, 72px) 24px;
  background: var(--login-surface);
}

.login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  animation: login-arrive 320ms cubic-bezier(.2, .8, .2, 1) both;
}

.login-card__header {
  margin-bottom: 28px;
}

.login-card__context {
  color: var(--login-primary);
}

.login-card__header h2 {
  margin: 6px 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.login-card__header > p:last-child {
  max-width: 38ch;
  margin: 0;
  color: var(--login-muted);
}

.demo-access,
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 10px;
}

.demo-access {
  border-color: #f1d6a8;
  color: #713b07;
  background: var(--login-demo-soft);
}

.login-alert {
  border-color: #f4c7c2;
  color: #7a271a;
  background: var(--login-danger-soft);
}

.demo-access > svg,
.login-alert > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.demo-access strong,
.login-alert strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.demo-access p,
.login-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.demo-access p span {
  display: inline-block;
  margin-inline-start: 5px;
  white-space: nowrap;
}

.demo-access code {
  padding: 1px 5px;
  border: 1px solid #e8c789;
  border-radius: 4px;
  color: #5e3108;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label,
.login-label-row a {
  font-size: 14px;
  font-weight: 600;
}

.login-field label {
  display: inline-block;
  margin-bottom: 7px;
  color: #28352d;
}

.login-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.login-label-row a {
  color: var(--login-primary-hover);
  text-underline-offset: 3px;
}

.login-control {
  position: relative;
}

.login-control > svg {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 16px;
  width: 20px;
  height: 20px;
  color: #748279;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-control input {
  width: 100%;
  min-height: 52px;
  padding: 12px 48px;
  border: 1px solid #cfd9d2;
  border-radius: var(--login-radius);
  outline: none;
  color: var(--login-ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 42, 29, .04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-control input:hover {
  border-color: #a8b7ad;
}

.login-control input:focus {
  border-color: var(--login-primary);
  box-shadow: 0 0 0 4px rgba(73, 120, 91, .14);
}

.login-field--error .login-control input {
  border-color: var(--login-danger);
}

.login-field--error .login-control input:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

.password-toggle {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #68776e;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--login-ink);
  background: var(--login-primary-soft);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-toggle__hide,
.password-toggle[aria-pressed="true"] .password-toggle__show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__hide {
  display: block;
}

.field-error {
  margin-top: 7px;
  color: var(--login-danger);
  font-size: 13px;
  font-weight: 500;
}

.field-error p {
  margin: 0;
}

.login-submit {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 18px;
  border: 1px solid var(--login-primary);
  border-radius: var(--login-radius);
  color: #fff;
  background: var(--login-primary);
  box-shadow: 0 8px 22px rgba(49, 81, 62, .18);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.login-submit:hover {
  border-color: var(--login-primary-hover);
  background: var(--login-primary-hover);
  box-shadow: 0 10px 26px rgba(49, 81, 62, .24);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: .75;
}

.login-submit > svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.login-submit__progress {
  display: none;
  align-items: center;
  gap: 8px;
}

.login-submit.is-loading .login-submit__label,
.login-submit.is-loading > svg {
  display: none;
}

.login-submit.is-loading .login-submit__progress {
  display: inline-flex;
}

.login-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 700ms linear infinite;
}

.login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 22px 0 0;
  color: var(--login-muted);
  font-size: 12px;
  text-align: center;
}

.login-footnote svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-skip:focus-visible,
.password-toggle:focus-visible,
.login-submit:focus-visible,
.login-label-row a:focus-visible {
  outline: 3px solid #8dc9a2;
  outline-offset: 3px;
}

@keyframes login-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 900px) {
  .login-page {
    grid-template-columns: minmax(340px, 42%) minmax(500px, 58%);
  }

  .login-identity {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    padding: clamp(48px, 6vw, 96px);
  }

  .login-identity::before {
    background-size: 64px 64px;
    mask-image: linear-gradient(125deg, #000 15%, transparent 88%);
  }

  .login-identity__content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    max-width: 440px;
    margin: 0;
  }

  .tenant-mark {
    width: 88px;
    height: 88px;
    margin-bottom: 30px;
    border-radius: 20px;
    font-size: 38px;
  }

  .tenant-heading__label {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .tenant-heading h1 {
    max-width: 12ch;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  .tenant-introduction {
    display: block;
    max-width: 36ch;
    margin-top: 24px;
    color: var(--login-panel-muted);
    font-size: 17px;
    line-height: 1.65;
  }

  .tenant-introduction p {
    margin: 0;
  }

  .workspace-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 54px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: var(--login-panel-muted);
    font-size: 13px;
    font-weight: 600;
  }

  .workspace-note svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .login-access {
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(48px, 8vw, 112px);
  }
}

@media (max-height: 720px) and (min-width: 900px) {
  .tenant-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .tenant-heading h1 {
    font-size: clamp(34px, 3.5vw, 48px);
  }

  .tenant-introduction {
    margin-top: 16px;
  }

  .workspace-note {
    margin-top: 28px;
  }

  .login-access {
    padding-block: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
