/* Поля, заполненные браузером (сохранённый логин/пароль): вместо жёлтого фона WebKit/Chromium —
   мягкий светло-индиго в тон NXA. Фон перекрывается внутренней тенью (background-color на autofill
   браузер не даёт поменять), длинный transition не даёт жёлтому мелькнуть. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f5f6ff inset !important;
    box-shadow: 0 0 0 1000px #f5f6ff inset !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827;
    transition: background-color 600000s ease-in-out 0s;
}
input:autofill {
    background-color: #f5f6ff !important;
}
body[data-ui-theme="dark"] input:-webkit-autofill,
body[data-ui-theme="dark"] input:-webkit-autofill:hover,
body[data-ui-theme="dark"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--nd-input) inset !important;
    box-shadow: 0 0 0 1000px var(--nd-input) inset !important;
    -webkit-text-fill-color: var(--nd-t1) !important;
    caret-color: var(--nd-t1);
}

/* Окно Ankaa работает на WebView2 (Edge): у полей пароля свой «глазик» и крестик очистки.
   У нас есть свой переключатель — встроенные скрываем, иначе в поле два глаза. */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}
