/* CM-01 Sign in — brand panel on the left, a calm card on the right */
body[data-screen="CM-01"] {
  background: var(--bg);
}

.login {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
}

.login__art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 64px;
  background: radial-gradient(80% 60% at 20% 10%, rgb(43 117 97 / 0.55), transparent 60%), radial-gradient(60% 50% at 100% 100%, rgb(198 164 94 / 0.22), transparent 60%), linear-gradient(160deg, var(--em-800), var(--em-950));
  color: #fff;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
}

.login__aviv {
  position: absolute;
  right: -40px;
  top: 8%;
  width: min(420px, 60%);
  height: auto;
  stroke: rgb(220 197 143 / 0.28);
  fill: none;
}

.login__brand {
  position: relative;
  max-width: 460px;
}

.login__eyebrow {
  color: var(--br-300);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.login__name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.login__tag {
  margin-top: 16px;
  color: rgb(255 255 255 / 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.login__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 32px;
}

.login__card {
  width: min(440px, 100%);
  padding: 34px 34px 30px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
}

.login__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--em-700), var(--em-900));
  box-shadow: inset 0 0 0 1px rgb(220 197 143 / 0.45);
}

.login__mark svg {
  width: 24px;
  height: 24px;
  stroke: var(--br-300);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.login__sub {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 13.5px;
}

.login form .stack {
  gap: 16px;
}

.login__error {
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--bad-bg);
  color: #8f2a25;
  font-size: 13px;
}

.login__caps {
  margin-top: 6px;
  color: var(--st-tentative);
  font-size: 12px;
}

.login__submit {
  width: 100%;
  height: 42px;
  font-size: 14px;
}

.login__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--em-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.login__link:hover {
  color: var(--em-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login__signedin {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--em-50);
}

.login__demo {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
}

.login__demo > summary {
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 600;
}

.login__demo-note {
  margin-top: 8px;
  color: var(--ink-3);
}

.login__demo-list {
  display: grid;
  gap: 4px;
  max-height: 260px;
  margin-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.login__demo-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px 7px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.login__demo-list button:hover {
  background: var(--em-50);
  box-shadow: inset 0 0 0 1px var(--em-200, var(--line));
}

.login__demo-list button:focus-visible {
  outline: 2px solid var(--br-400);
  outline-offset: 2px;
}

.login__demo-list button > span:first-child {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login__demo-list button > span:last-child {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.login__foot {
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .login {
    grid-template-columns: minmax(0, 1fr);
  }
  .login__art {
    display: none;
  }
}
