.login-page {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: radial-gradient(ellipse at top left, #dceee5, transparent 55%), #f1f6f4;
  color: #173e35;
  font: 14px/1.5 var(--font-ui);
}
.login-page * {
  box-sizing: border-box;
}
.login-shell {
  width: min(100%, 470px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e6df;
  border-radius: 20px;
  box-shadow: 0 20px 70px #123e3312;
}
.login-shell.with-directory {
  width: min(100%, 920px);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  background: #123e33;
  color: #fff;
}
.login-brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -1px;
  line-height: 1.25;
  white-space: nowrap;
}
.login-brand strong span {
  color: #c0e5bd;
  font-weight: 500;
}
.login-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #b0cfc0;
  margin-top: 4px;
}
.login-secure {
  margin-left: auto;
  font-size: 12px;
  color: #c4d8ce;
}
.login-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.with-directory .login-body {
  grid-template-columns: 1fr 1fr;
}
.login-form-panel {
  padding: 32px;
}
.login-eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  color: #45816a;
}
.login-page h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0;
  letter-spacing: -1px;
}
.login-intro {
  color: #70877d;
  margin: 0 0 24px;
}
.login-page label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 7px;
}
.login-page input,
.login-page select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6e2db;
  border-radius: 9px;
  background: #fff;
  color: #173e35;
  font: inherit;
}
.login-password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.login-password-label button {
  background: transparent;
  border: 0;
  padding: 0 0 7px;
  font: inherit;
  font-size: 12px;
  color: #087a61;
  cursor: pointer;
}
.login-selection {
  font-size: 11px;
  color: #537c67;
  margin: 8px 0 0;
  min-height: 17px;
}
.login-page .login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 16px;
  margin-top: 12px;
  border: 0;
  border-radius: 9px;
  background: #087e64;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.login-submit:hover {
  background: #08644f;
}
.login-join {
  font-size: 12px;
  text-align: center;
  color: #71857b;
  margin: 20px 0 0;
}
.login-page a {
  color: #087a61;
  text-decoration: none;
}
.login-page a:hover {
  text-decoration: underline;
}
.login-directory {
  background: #f7faf8;
  border-left: 1px solid #e1eae5;
  padding: 28px;
  min-width: 0;
}
.login-directory-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.login-demo-badge {
  padding: 3px 7px;
  border-radius: 5px;
  background: #e4eee8;
  color: #547561;
  font-size: 10px;
  white-space: nowrap;
}
.login-page h2 {
  font-size: 20px;
  margin: 10px 0 4px;
  letter-spacing: -0.5px;
}
.login-directory p {
  font-size: 12px;
  color: #71857b;
  margin: 0 0 20px;
}
.login-user-list {
  display: grid;
  gap: 6px;
  max-height: 245px;
  overflow: auto;
  margin-top: 12px;
  padding: 1px 4px 2px 1px;
  scrollbar-width: thin;
}
.login-page .login-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 1px solid #e1e9e4;
  border-radius: 10px;
  background: #fff;
  color: #173e35;
  cursor: pointer;
  font: inherit;
}
.login-page .login-user[hidden] {
  display: none;
}
.login-user:hover,
.login-page .login-user[aria-pressed='true'] {
  border-color: #88baa2;
  background: #edf6f0;
}
.login-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6efe5;
  color: #447251;
  font-size: 12px;
  font-weight: 700;
}
.login-user-copy {
  min-width: 0;
  flex: 1;
}
.login-user-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-user-copy small {
  display: block;
  font-size: 10px;
  color: #71857b;
  margin-top: 2px;
}
.login-user-arrow {
  color: #719c84;
}
.login-directory-note {
  display: block;
  margin-top: 12px;
  color: #7a8e82;
  font-size: 10px;
}
.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 28px;
  border-top: 1px solid #e1eae5;
  font-size: 11px;
  color: #7c9287;
}
.login-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.login-error {
  background: #fff0ed;
  border: 1px solid #f2c9c3;
  color: #a3332b;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 12px;
}
.login-page :is(button, input, select, a):focus-visible {
  outline: 3px solid #90cbb1;
  outline-offset: 3px;
}
[data-theme='dark'] .login-page {
  background: #101e19;
  color: #e1efe6;
}
[data-theme='dark'] .login-shell {
  background: #1a2b23;
  border-color: #35483d;
}
[data-theme='dark'] .login-directory {
  background: #17261f;
  border-color: #35483d;
}
[data-theme='dark'] .login-page :is(input, select, .login-user) {
  background: #203329;
  border-color: #3d5145;
  color: #e1efe6;
}
[data-theme='dark'] .login-page .login-user[aria-pressed='true'] {
  background: #294c39;
}
[data-theme='dark'] .login-footer {
  border-color: #35483d;
}
[data-theme='dark']
  .login-page
  :is(.login-intro, .login-directory p, .login-user-copy small, .login-join) {
  color: #a1b8a9;
}
[data-theme='dark'] .login-page a,
[data-theme='dark'] .login-eyebrow {
  color: #8bd7b3;
}
@media (max-width: 650px) {
  .login-page {
    padding: 16px 12px;
    align-items: start;
  }
  .with-directory .login-body {
    grid-template-columns: 1fr;
  }
  .login-secure {
    display: none;
  }
  .login-brand {
    padding: 20px 24px;
  }
  .login-form-panel {
    padding: 24px;
  }
  .login-directory {
    border-left: 0;
    border-top: 1px solid #e1eae5;
    padding: 24px;
  }
  .login-page input,
  .login-page select {
    font-size: 16px;
  }
  .login-footer {
    padding: 16px 24px;
  }
}

/* Keep the animated mark contained without moving any form controls. */
.login-logo {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  isolation: isolate;
}
.login-logo img {
  display: block;
  width: 44px;
  height: 44px;
  transition: opacity 350ms ease;
}
.login-logo canvas {
  position: absolute;
  width: 176px;
  height: 176px;
  top: -66px;
  left: -66px;
  pointer-events: none;
  opacity: 0;
}
.login-logo.is-gathering canvas {
  opacity: 1;
}
.login-logo.is-gathering img {
  opacity: 0.12;
}
.login-brand {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 10%, #20614d 0, transparent 50%),
    linear-gradient(110deg, #123e33, #0c3028);
}
.login-shell {
  box-shadow:
    0 22px 80px #123e3314,
    0 1px 2px #123e3308;
}
.login-form-panel {
  background: linear-gradient(150deg, #fff, #fcfefd);
}
.login-page .login-user {
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.login-page .login-user:hover {
  box-shadow: 0 2px 8px #173e3508;
}
.login-page .login-submit {
  box-shadow: 0 4px 12px #087e6418;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}
[data-theme='dark'] .login-form-panel {
  background: linear-gradient(150deg, #1d3026, #1a2b23);
}
@media (prefers-reduced-motion: reduce) {
  .login-logo canvas {
    display: none;
  }
  .login-logo img {
    opacity: 1 !important;
    transition: none;
  }
  .login-page * {
    transition: none !important;
  }
}
/* Full-height split sign-in, with a quiet animated community story. */
.login-page {
  display: block;
  padding: 0;
  background: #f5f8f6;
}
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
}
.login-story {
  background:
    radial-gradient(ellipse at 75% 70%, #1e6150, transparent 65%),
    linear-gradient(145deg, #0c2926, #123e33);
  color: #fff;
  padding: clamp(32px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.login-story .login-brand {
  background: none;
  padding: 0;
  gap: 12px;
}
.login-story .login-secure {
  display: none;
}
.login-story-content {
  margin-top: 30px;
}
.login-story-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #a6d6bf;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
}
.login-story-caption button {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  border: 1px solid #ffffff25;
  border-radius: 22px;
  background: #ffffff06;
  color: #d0eadd;
  padding: 8px 12px;
  cursor: pointer;
}
.login-heart-art {
  position: relative;
  max-width: 520px;
  margin: 12px auto 24px;
}
.login-heart-art canvas {
  display: block;
  width: 100%;
  height: auto;
}
.login-heart-art > span {
  display: block;
  text-align: center;
  color: #91bbac;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 2px;
  margin-top: -12px;
}
.login-story-eyebrow {
  font-size: 11px;
  color: #9fc7b6;
  font-weight: 650;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.login-story h2 {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.13;
  letter-spacing: -1.8px;
  margin: 0 0 22px;
}
.login-story-description {
  max-width: 450px;
  color: #b2cec0;
  font-size: 14px;
  line-height: 1.8;
}
.login-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.login-story-tags span {
  border: 1px solid #ffffff20;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #cce3d6;
}
.login-story-bottom {
  color: #83ab98;
  font-size: 10px;
  margin-top: 26px;
}
.login-workspace {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 90px 40px 32px;
  min-width: 0;
}
.login-workspace-inner {
  width: 100%;
  max-width: 405px;
}
.login-theme {
  position: absolute;
  top: 28px;
  right: clamp(24px, 5vw, 80px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dce7e0;
  border-radius: 9px;
  background: white;
  color: #117e62;
  font-size: 23px;
  cursor: pointer;
}
.login-form-panel {
  padding: 0;
  background: none;
}
.login-page h1 {
  font-size: 27px;
  margin-top: 13px;
  line-height: 1.25;
}
.login-intro {
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 26px;
}
.login-page .login-submit {
  margin-top: 15px;
}
.login-join {
  margin: 17px 0 22px;
}
.login-directory {
  border: 1px solid #dce7e0;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  margin-top: 24px;
}
.login-page .login-directory h2 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 10px 0 5px;
}
.login-directory p {
  font-size: 11px;
  margin-bottom: 14px;
}
.login-directory-heading .login-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3px;
}
.login-user-list {
  max-height: 260px;
  gap: 0;
  padding: 0;
}
.login-page .login-user {
  border: 0;
  border-bottom: 1px solid #e1e9e4;
  border-radius: 0;
  padding: 12px 3px;
  background: transparent;
}
.login-avatar {
  width: 30px;
  height: 30px;
}
.login-directory-note {
  line-height: 1.5;
}
.login-footer {
  padding: 20px 0 0;
  margin-top: 24px;
}
[data-theme='dark'] .login-workspace {
  background: #14251d;
}
[data-theme='dark'] .login-form-panel {
  background: none;
}
[data-theme='dark'] .login-theme {
  background: #21392b;
  border-color: #35483d;
  color: #b5e3c5;
}
@media (min-width: 1100px) and (min-height: 850px) {
  .login-story {
    min-height: 100svh;
  }
}
@media (max-width: 760px) {
  .login-split {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 28px;
  }
  .login-story-content {
    margin-top: 18px;
    position: relative;
  }
  .login-heart-art {
    max-width: 240px;
    margin: 0 0 0 auto;
    height: 120px;
    overflow: hidden;
  }
  .login-heart-art > span,
  .login-story-description,
  .login-story-tags,
  .login-story-bottom,
  .login-story-eyebrow {
    display: none;
  }
  .login-story h2 {
    position: absolute;
    top: 65px;
    left: 0;
    font-size: 26px;
    max-width: 60%;
  }
  .login-story-caption {
    font-size: 8px;
  }
  .login-story-caption button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .login-workspace {
    padding: 65px 24px 28px;
  }
  .login-theme {
    top: 16px;
    right: 24px;
    width: 36px;
    height: 36px;
  }
  .login-directory {
    padding: 16px;
  }
  .login-page input,
  .login-page select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-story-caption button {
    display: none;
  }
}
/* Desktop owns exactly one viewport; only the sign-in panel scrolls. */
.login-page {
  width: 100%;
  max-width: none;
}
.login-page > .login-split {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.login-story {
  height: 100%;
  min-height: 0;
  padding: clamp(24px, 4vw, 64px);
  overflow: hidden;
}
.login-heart-art {
  margin: 10px auto 20px;
  width: 100%;
}
.login-heart-art canvas {
  width: 100%;
  height: clamp(140px, 27dvh, 280px);
  object-fit: contain;
}
.login-workspace {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 80px 40px 28px;
  align-items: flex-start;
  scrollbar-width: thin;
}
.login-workspace-inner {
  margin-block: auto;
}
@media (min-width: 761px) and (max-height: 800px) {
  .login-story {
    padding: 30px 40px;
  }
  .login-story-content {
    margin-top: 22px;
  }
  .login-story h2 {
    font-size: 36px;
    margin-bottom: 12px;
  }
  .login-story-description {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .login-story-tags {
    margin-top: 12px;
  }
  .login-story-bottom {
    margin-top: 18px;
  }
}
@media (max-width: 760px) {
  .login-page > .login-split {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .login-story {
    height: auto;
    min-height: 0;
    padding: 24px;
  }
  .login-heart-art canvas {
    height: 145px;
  }
  .login-workspace {
    height: auto;
    overflow: visible;
    padding: 65px 24px 28px;
  }
  .login-story h2 {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .login-story h2 {
    max-width: 78%;
  }
}
/* A compact sign-in surface; the illustration owns motion, the form stays still. */
.login-story {
  position: relative;
  isolation: isolate;
}
#community-pixels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.login-heart-art {
  position: static;
  height: clamp(170px, 29dvh, 290px);
}
.login-heart-art > span {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 24px);
  margin: 0;
  pointer-events: none;
}
.login-workspace {
  padding: 60px 32px 20px;
}
.login-workspace-inner {
  max-width: 410px;
}
.login-form-panel {
  padding: 22px 24px 18px;
  background: #fff;
  border: 1px solid #dfe9e2;
  border-radius: 14px;
  box-shadow: 0 7px 30px #153d2e05;
}
.login-page h1 {
  font-size: 23px;
  margin: 8px 0 6px;
  letter-spacing: -0.7px;
}
.login-intro {
  font-size: 11px;
  margin: 0 0 20px;
}
.login-page input,
.login-page select {
  height: 40px;
  padding: 8px 11px;
}
.login-password-label {
  margin-top: 13px;
}
.login-selection:empty {
  display: none;
}
.login-page .login-submit {
  min-height: 40px;
  margin-top: 18px;
  padding: 9px 14px;
}
.login-join {
  font-size: 11px;
  margin: 14px 0 0;
}
.login-directory {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
}
.login-demo-intro {
  margin: 7px 0 12px !important;
  font-size: 10px !important;
}
.login-directory label {
  font-size: 11px;
  margin-bottom: 5px;
}
.login-user-list {
  max-height: 170px;
  margin-top: 8px;
}
.login-page .login-user {
  padding: 9px 2px;
}
.login-user-copy strong {
  font-size: 11px;
}
.login-user-copy small {
  font-size: 10px;
}
.login-directory-note {
  font-size: 9px;
  margin-top: 8px;
}
.login-footer {
  padding-top: 12px;
  margin-top: 14px;
  font-size: 10px;
}
[data-theme='dark'] .login-form-panel {
  background: #1a2d22;
  border-color: #35483d;
}
@media (max-width: 760px) {
  .login-heart-art {
    height: 130px;
    max-width: none;
    overflow: visible;
  }
  .login-heart-art > span {
    display: none;
  }
  .login-workspace {
    padding: 60px 18px 24px;
  }
  .login-form-panel {
    padding: 20px;
  }
  .login-page input,
  .login-page select {
    font-size: 16px;
  }
}
.login-heart-art {
  height: clamp(200px, 35dvh, 330px);
}
.login-heart-art > span {
  position: static;
  display: block;
  padding-top: calc(clamp(200px, 35dvh, 330px) - 6px);
}
@media (max-width: 760px) {
  .login-heart-art {
    width: 38%;
    height: 130px;
    margin-left: auto;
    margin-right: 0;
  }
  .login-heart-art > span {
    display: none;
  }
  .login-story h2 {
    max-width: 62%;
    font-size: 22px;
  }
}
/* Wide community illustration, quiet quarter-width sign-in. */
@media (min-width: 761px) {
  .login-split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }
  .login-story {
    padding-inline: clamp(40px, 6vw, 100px);
  }
  .login-heart-art {
    max-width: 740px;
  }
  .login-workspace {
    padding: 68px 20px 24px;
    background: #fff;
  }
  .login-workspace-inner {
    max-width: 410px;
  }
  .login-theme {
    right: 20px;
    top: 18px;
  }
  .login-form-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .login-page h1 {
    font-size: clamp(21px, 1.5vw, 28px);
  }
  .login-intro {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .login-page .login-directory {
    padding: 12px;
    background: #f7faf8;
  }
  .login-user-copy strong {
    white-space: normal;
    line-height: 1.4;
  }
  .login-page input {
    min-width: 0;
  }
}
/* Balance the wide illustration as a message and a community portrait. */
@media (min-width: 761px) {
  .login-story {
    justify-content: center;
    padding-inline: clamp(32px, 5vw, 86px);
  }
  .login-story .login-brand {
    position: absolute;
    top: clamp(28px, 5dvh, 54px);
    left: clamp(32px, 5vw, 86px);
  }
  .login-story-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 14px 32px;
    margin: 30px 0 0;
  }
  .login-story-copy {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .login-story-caption {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .login-story-caption button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .login-heart-art {
    grid-column: 2;
    grid-row: 2;
    height: clamp(250px, 40dvh, 440px);
    width: 100%;
    margin: 0;
  }
  .login-heart-art > span {
    padding-top: calc(clamp(250px, 40dvh, 440px) - 10px);
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .login-story h2 {
    font-size: clamp(30px, 3vw, 54px);
    line-height: 1.13;
    margin-bottom: 20px;
  }
  .login-story-eyebrow {
    font-size: 10px;
    line-height: 1.6;
  }
  .login-story-description {
    font-size: 13px;
    line-height: 1.8;
    max-width: 390px;
  }
  .login-story-tags {
    gap: 6px;
    margin-top: 20px;
  }
  .login-story-tags span {
    font-size: 10px;
    padding: 7px 9px;
  }
  .login-story-bottom {
    position: absolute;
    bottom: 28px;
    left: clamp(32px, 5vw, 86px);
    margin: 0;
  }
}
@media (max-width: 760px) {
  .login-story-copy {
    position: absolute;
    top: 65px;
    left: 0;
    width: 62%;
  }
  .login-story-copy h2 {
    position: static;
    max-width: 100%;
  }
}
.login-split {
  position: relative;
}
.login-split > .login-theme {
  top: clamp(28px, 5dvh, 54px);
  right: 24px;
  z-index: 2;
}
@media (max-width: 760px) {
  .login-split > .login-theme {
    top: 24px;
    right: 20px;
    background: #ffffff0c;
    border-color: #ffffff30;
    color: #d2efdf;
  }
  .login-story .login-brand {
    padding-right: 42px;
  }
  .login-story .login-brand strong {
    font-size: clamp(17px, 4.8vw, 21px);
  }
  .login-story .login-brand small {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .login-workspace {
    padding-top: 24px;
  }
}
.login-split > .login-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.login-theme svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
}
@media (min-width: 761px) {
  .login-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  }
  .login-workspace {
    padding: 82px clamp(28px, 3vw, 56px) 30px;
  }
  .login-workspace-inner {
    width: 100%;
    max-width: 430px;
  }
  .login-split > .login-theme {
    right: clamp(28px, 3vw, 56px);
  }
}
@media (max-width: 1024px) {
  .login-page input,
  .login-page select {
    font-size: 16px !important;
    min-height: 44px;
  }
}

/* Sign-in stays within the viewport; the account directory has no nested scrolling. */
.login-split > .login-theme {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: #fff;
  border-color: #dce7e0;
  color: #117e62;
  box-shadow: 0 3px 12px #102c2110;
}
.login-page .login-directory #login-account {
  margin-top: 0;
}
.login-page .login-directory label[for='login-account'] {
  margin-top: 10px;
}
.login-selection.needs-password {
  color: #986018;
  background: #fff5df;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
}
[data-theme='dark'] .login-selection.needs-password {
  color: #f3cd8c;
  background: #3b3020;
}
[data-theme='dark'] .login-split > .login-theme {
  background: #1a2d22;
  border-color: #405749;
  color: #c7ead8;
}
@media (min-width: 761px) {
  .login-page > .login-split {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .login-workspace {
    height: 100dvh;
    max-height: 100dvh;
    padding: 72px clamp(24px, 2.6vw, 48px) 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .login-workspace-inner {
    width: 100%;
    max-width: 440px;
    margin-block: auto;
  }
  .login-page .login-directory {
    margin-top: 14px;
  }
  .login-page .login-demo-intro {
    margin-bottom: 10px !important;
  }
  .login-page .login-directory-note {
    margin-top: 8px;
    line-height: 1.5;
  }
  .login-page .login-intro {
    margin-bottom: 18px;
  }
}
@media (max-width: 760px) {
  .login-split > .login-theme {
    top: 16px;
    right: 16px;
  }
  .login-workspace {
    padding: 20px 16px 24px;
    min-height: 0;
  }
}

/* RetailSync/ClinicSync mobile sign-in: one compact brand row above the form. */
.login-mobile-brand {
  display: none;
}
@media (max-width: 760px) {
  .login-page .login-story {
    display: none;
  }
  .login-page > .login-split {
    display: block;
    min-height: 100dvh;
  }
  .login-page .login-workspace {
    min-height: 100dvh;
    padding: 24px;
    display: block;
  }
  .login-workspace-inner {
    max-width: 440px;
    margin: 0 auto;
  }
  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding-right: 46px;
    margin-bottom: 28px;
  }
  .login-mobile-brand img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .login-mobile-brand strong {
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    white-space: nowrap;
  }
  .login-mobile-brand strong span {
    color: var(--green);
  }
  .login-page .login-split > .login-theme {
    top: 27px;
    right: 26px;
    width: 36px;
    height: 36px;
  }
  .login-page .login-form-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .login-page h1 {
    font-size: 25px;
    line-height: 1.25;
    margin: 10px 0 8px;
  }
  .login-page .login-intro {
    margin-bottom: 22px;
    font-size: 12px;
  }
  .login-page .login-directory {
    margin-top: 18px;
  }
}
@media (max-width: 360px) {
  .login-page .login-workspace {
    padding-inline: 20px;
  }
  .login-mobile-brand strong {
    font-size: 18px;
  }
  .login-page .login-split > .login-theme {
    right: 20px;
  }
}
