:root {
    --lm-soft-blue: #506f85;
    --lm-text: #203850;
    --lm-secondary: #707070;
    --lm-page: #e9edf0;
    --lm-white: #fff;
    --lm-input-border: #d3d3d3;
    --lm-login-bg: #e4f7ef;
    --lm-login-text: #24683d;
    --lm-login-border: #80e0b8;
    --lm-green: #309850;
    --lm-stripe: linear-gradient(90deg, #ff7000 0% 25%, #ffb870 25% 50%, #40b880 50% 75%, #80e0b8 75% 100%);
}

.lm-login-page {
    display: grid;
    grid-template-columns: minmax(0, 648px);
    place-content: center;
    box-sizing: border-box;
    min-height: 100dvh;
    padding: 20px 24px;
    background-color: var(--lm-page);
    color: var(--lm-text);
    font: .8125rem/1.5 system-ui, sans-serif;
}

.lm-login-card {
    display: grid;
    grid-template-columns: 46fr 54fr;
    min-height: 350px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 14px 32px rgb(32 56 80 / 14%);
}

.lm-login-brand, .lm-login-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    min-width: 0;
    text-align: center;
}

.lm-login-brand {
    gap: 20px;
    padding: 36px;
    background-color: var(--lm-soft-blue);
    color: var(--lm-white);
}

.lm-login-brand > div:first-child {
    display: grid;
    flex: 1;
    grid-template-rows: auto 1fr;
    justify-items: center;
    gap: 20px;
}

.lm-login-brand h1 {
    max-width: 14ch;
    margin: 0;
    font-size: 2rem;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.lm-login-brand-copy {
    align-self: center;
    max-width: 25ch;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.55;
    text-wrap: balance;
}

.lm-login-brand-tags {
    margin: 0 0 8px;
    font-size: .8125rem;
    line-height: 1.6;
    text-wrap: balance;
}

.lm-login-stripe {
    width: 80%;
    height: 3px;
    margin-inline: auto;
    border-radius: 3px;
    background-image: var(--lm-stripe);
}

.lm-login-version {
    display: block;
    margin-top: 8px;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.lm-login-form {
    gap: 13px;
    padding: 36px clamp(38px, calc(6.2vw + 10px), 56px);
    background-color: var(--lm-white);
}

.lm-login-form h2 {
    margin: 0 0 4px;
    padding-bottom: 12px;
    background: var(--lm-stripe) bottom / 100% 1px no-repeat;
    color: var(--lm-soft-blue);
    font-size: 1.625rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.lm-login-field {
    display: grid;
    gap: 5px;
    font-size: .8125rem;
    font-weight: 400;
}

.lm-login-control {
    position: relative;
    display: block;
    min-width: 0;
}

.lm-login-control::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    width: 20px;
    height: 20px;
    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/pass.svg'); }

.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 .875rem/1.4 system-ui, sans-serif;
    text-align: center;
}

.lm-login-field input.valid.modified:not([type=checkbox]) { outline: none; }
.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-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-color: 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-form p { margin: 0; color: var(--lm-secondary); }
.lm-login-form .lm-login-welcome { color: var(--lm-green); }
.lm-login-form .lm-login-error { color: #9a2525; }
.lm-login-form [role='status'] {
    margin-top: 8px;
    padding-top: 12px;
    background: var(--lm-stripe) top / 100% 1px no-repeat;
    font-size: .9375rem;
    line-height: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .lm-login-button { transition: none; }
}
