:root {
  --lm-soft-blue: #506F85;
  --lm-text: #203850;
  --lm-secondary: #707070;
  --lm-page: #E9EDF0;
  --lm-white: #FFFFFF;
  --lm-input-border: #D3D3D3;
  --lm-login-bg: #E4F7EF;
  --lm-login-text: #24683D;
  --lm-login-border: #80E0B8;
  --lm-green: #309850;
}
.lm-login-page {
  min-height: 100dvh;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 648px);
  place-content: center;
  padding: 20px 24px;
  background: var(--lm-page);
  color: var(--lm-text);
  font: 0.8125rem/1.5 system-ui, sans-serif;
}

.lm-login-card {
  display: grid;
  grid-template-columns: 46fr 54fr;
  min-height: 350px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgb(32 56 80 / 14%);
}

.lm-login-brand,
.lm-login-form {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.lm-login-brand {
  justify-content: space-between;
  gap: 20px;
  padding: 36px 36px;
  background: var(--lm-soft-blue);
  color: var(--lm-white);
}

.lm-login-brand > div:first-child {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  justify-items: center;
}

.lm-login-brand-name {
  margin: 0 0 12px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lm-login-brand h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.lm-login-brand-copy {
  align-self: center;
  max-width: 25ch;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.lm-login-brand-tags {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  line-height: 1.6;
  text-wrap: balance;
}

.lm-login-form {
  justify-content: space-between;
  gap: 13px;
  padding: 36px clamp(38px, calc(6.2vw + 10px), 56px);
  background: var(--lm-white);
}

.lm-login-form h2 {
  margin: 0 0 4px;
  padding-bottom: 12px;
  background-image: linear-gradient(to right, #FF7000 25%, #FFB870 25% 50%, #40B880 50% 75%, #80E0B8 75%);
  background-position: bottom;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  color: var(--lm-soft-blue);
  font-size: 1.625rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.lm-login-form p {
  margin: 0;
  color: var(--lm-secondary);
}

.lm-login-field {
  display: grid;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 400;
}

.lm-login-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 35px;
  padding: 4px 39px;
  border: 1px solid var(--lm-input-border);
  border-radius: 10px;
  background-color: var(--lm-white);
  color: var(--lm-text);
  font: 400 0.875rem/1.4 system-ui, sans-serif;
  text-align: center;
}

.lm-login-field input.valid.modified:not([type=checkbox]) {
  outline: none;
}


.lm-login-control {
  position: relative;
  display: block;
  min-width: 0;
}

.lm-login-control::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: center / contain no-repeat;
  pointer-events: none;
}

.lm-login-control-user::before { background-image: url("../icone/person.svg"); }
.lm-login-control-password::before { background-image: url("../icone/key-pass.svg"); }

.lm-login-field input:is(:autofill, :-webkit-autofill) {
  box-shadow: inset 0 0 0 1000px var(--lm-white);
  -webkit-text-fill-color: var(--lm-text);
  caret-color: var(--lm-text);
}

.lm-login-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 35px;
  margin-top: 4px;
  border: 1px solid var(--lm-login-border);
  border-radius: 10px;
  background: var(--lm-login-bg);
  color: var(--lm-login-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.lm-login-button:disabled { opacity: .6; cursor: not-allowed; }
.lm-login-button:focus-visible { outline: 2px solid var(--lm-soft-blue); outline-offset: 3px; }
.lm-login-field input:focus-visible, .lm-login-field input.valid.modified:not([type=checkbox]):focus-visible {
  outline: 1px solid #80B8E0;
  outline-offset: 1px;
}
.lm-login-form .lm-login-welcome { color: var(--lm-green); text-align: center; }
.lm-login-form .lm-login-error { color: #9A2525; text-align: center; }
.lm-login-form [role="status"] {
  margin-top: 8px;
  padding-top: 12px;
  background-image: linear-gradient(to right, #FF7000 25%, #FFB870 25% 50%, #40B880 50% 75%, #80E0B8 75%);
  background-position: top;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}
.lm-login-version {
  display: block;
  margin-top: 8px;
  color: var(--lm-white);
  text-align: center;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.5rem;
}
.lm-login-tagline {
  display: block;
  margin-bottom: 10px;
  color: #C65D00;
  text-align: center;
  font-size: .6875rem;
  font-weight: 700;
  white-space: nowrap;
}
.lm-login-stripe {
  width: 80%;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(to right,#FF7000 25%,#FFB870 25% 50%,#40B880 50% 75%,#80E0B8 75%);
}



@media (prefers-reduced-motion: reduce) { .lm-login-button { transition: none; } }
