:root {
        --container-bg: #383B43;
}

body {
        background-color: var(--container-bg);
        color: #d8f1ff;
}

.container {
        background-color: var(--container-bg);
}

h1 {
        font-size: 2.3rem;
}

.label {
        font-size: 1.2rem;
}

input[type="text"] {
        flex: 1;
        padding: 15px;
        border: 1px solid #889aa4;
        border-radius: 8px;
        font-size: 1rem;
        background: #2C2F37;
        color: white;
        caret-color: white;
        transition: border-color 0.3s;
        outline: 0;
        width: 310px;
}

button {
        padding: 15px 25px;
        background: #516071;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
}

button:hover {
        background: #67839A;
}

.result {
        margin-top: 10px;
        padding: 10px;
        background: #2c2f37;
}

.ok {
        color: #80cbc4;
}

.err {
        color: #e57373;
}

.warning {
        background: #ffeb3b;
        color: #000;
        padding: 10px;
        margin: 10px 0;
}

.warning-2 {
        background: #c3612b;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
        /* 1. Замораживаем анимацию смены фона на огромное время */
        transition: background-color 5000000s ease-in-out 0s;

        /* 2. Или "закрашиваем" фон с помощью inset shadow */
        box-shadow: 0 0 0px 1000px #2C2F37 inset;

        /* 3. И задаем нужный цвет текста */
        -webkit-text-fill-color: white;
}

/* Для современных браузеров */
input:autofill {
        box-shadow: 0 0 0px 1000px #2C2F37 inset;
        -webkit-text-fill-color: white;
}