:root {
    font-family: 'Manrope', sans-serif;
    color: #f5faf6;
    background: #18573f;
    font-synthesis: none;
    color-scheme: light;
}

* { box-sizing: border-box; }

.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    background: #18573f;
}

.login-content { width: min(100%, 360px); }

.login-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 0 0 42px;
    color: #ffffff;
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.25;
    letter-spacing: -1.2px;
    white-space: nowrap;
}

.brand-oms { font-weight: 750; letter-spacing: -1px; }
.brand-name { font-weight: 550; }
.brand-name > span { font-weight: 350; color: #d0e7d7; }
.login-form { display: grid; gap: 22px; }
.login-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: #e0ede4;
}

.login-field input {
    width: 100%;
    height: 54px;
    border: 1px solid #e3eee5;
    border-radius: 9px;
    padding: 0 16px;
    background: #f4f8f5;
    color: #234a35;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: background .15s, box-shadow .15s;
}

.login-field input::placeholder { color: #748579; font-size: 14px; }
.login-field input:focus {
    background: #fff;
    border-color: #c3dfb1;
    box-shadow: 0 0 0 4px #c3dfb12b;
}

.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6a7f70;
    cursor: pointer;
}

.password-toggle:hover { color: #18573f; background: #e7f0e9; }
.password-toggle svg { width: 19px; height: 19px; }
.login-submit {
    height: 53px;
    margin-top: 8px;
    border: 1px solid #c5dfb5;
    border-radius: 9px;
    background: #c5dfb5;
    color: #20462c;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.login-submit:hover { background: #d5e9c8; border-color: #d5e9c8; }
button:focus-visible { outline: 3px solid #e1f0d7; outline-offset: 4px; }
.password-toggle:focus-visible { outline-color: #38774d; outline-offset: -3px; }
.login-error {
    padding: 13px 15px;
    margin-bottom: 22px;
    border: 1px solid #e9c2b5;
    border-radius: 9px;
    background: #fff1eb;
    color: #963d2d;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 380px) {
    .login-page { padding: 32px 20px; }
    .login-brand { gap: 9px; margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
