/* скрываем браузерные стили */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
    border: 1px solid var(--block-4) !important;
    border-radius: 8px;
}

/* скрываем браузерный глазик */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none;
}

.container {
  margin: 0 auto;
  padding: 0 40px;
  max-width: 1920px;
  width: 100%;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Карточка входа */
.login {
    margin: 0 auto;
    padding: 50px 25px 35px 25px;
    width: 300px;
    background:  #ebeef0;
    border-radius: 15px;
}

/* Заголовок "Вход" */
.login-title {
    margin: 0;
    margin-bottom: 35px;
    padding: 0;
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    color: var(--fonts);
    text-align: center;
}

.login-error {
    display: none;
    margin: 0 0 9px 20px;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: var(--login-error);
}

.login-error.active {
    display: block;
}

.login-error-span {
    position: relative;
    top: -3px;
}

/* Форма */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Поля */
.form-field {
    position: relative;
}

/* Инпуты */
.input {
    width: 250px;
    height: 50px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid var(--block-4);
    background: var(--body);
    font-weight: 300;
    font-size: 20px;
    color: var(--fonts);
    outline: none;
}

.input::placeholder {
    color: #9aa0a6;
}

.input:focus {
    border-color: rgba(0, 0, 0, 0.35);
}

.password-field .input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.icon-eye-open {
    display: block;
}

.icon-eye-hidden {
    display: none;
}

.password-toggle.active .icon-eye-open {
    display: none;
}

.password-toggle.active .icon-eye-hidden {
    display: block;
}

/* Чекбокс */
.form-remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-size: 12px;
    color: var(--fonts);
    user-select: none;
}

.checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkbox-ui {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 1px solid var(--block-4);
    background: var(--body);
    display: inline-block;
}

.checkbox:checked+.checkbox-ui {
    background: var(--body);
    border-color: var(--block-4);
}

.checkbox:checked+.checkbox-ui::after {
    content: "";
    display: block;
    width: 4px;
    height: 7px;
    border-right: 2px solid var(--fonts);
    border-bottom: 2px solid var(--fonts);
    transform: rotate(45deg);
    margin: 0 auto;
}

.checkbox:focus-visible+.checkbox-ui {
    outline: 2px solid rgba(28, 110, 194, 0.35);
    outline-offset: 2px;
}

.checkbox-span {
    font-weight: 200;
    font-size: 16px;
    color: var(--fonts);
}

.btn {
    margin: auto;
    padding: 0;
    width: 150px;
    height: 60px;
    border: none;
    border-radius: 10px;
    background: var(--btn);
    color: var(--body);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.btn:hover {
    background: #195fa8;
}