.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input.error-border {
    border: 2px solid #ff4444 !important;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-label.required:after {
    content: " *";
    color: #ff4444;
}

.error-message {
    margin-top: 5px;
    font-size: 12px;
    color: #ff4444;
    display: none;
}

.form-group {
    margin-bottom: 20px;
}
/*---checkbox---*/
.checkbox-label {
    font-size: 14px;
    color: #333;
    user-select: none;
}

.checkbox-label:hover {
    color: #4CAF50;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50; 
}

.checkbox-input:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.form-group.checkbox-group {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

/*------------------*/

/* Контейнер для выстраивания в колонку */
.loginform-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px 0;
}

/* Базовый контейнер чекбокса */
.loginform-custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Скрываем дефолтный браузерный чекбокс */
.loginform-custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Стилизация кастомного квадратика */
.loginform-checkbox-box {
    min-width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-top: 2px;
    margin-right: 12px;
    position: relative;
    background-color: #fff;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Ховер на инпут */
.loginform-custom-checkbox:hover input ~ .loginform-checkbox-box {
    border-color: #075e54;
}

/* Стиль квадратика, когда чекбокс активен */
.loginform-custom-checkbox input:checked ~ .loginform-checkbox-box {
    background-color: #075e54;
    border-color: #075e54;
}

/* Создаем саму внутреннюю галочку (скрыта по умолчанию) */
.loginform-checkbox-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Показываем галочку при клике */
.loginform-custom-checkbox input:checked ~ .loginform-checkbox-box::after {
    display: block;
}

/* Текстовая часть */
.loginform-checkbox-text {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

/* Стилизация ссылок внутри текста */
.loginform-checkbox-text a {
    color: #075e54;
    text-decoration: underline;
    transition: color 0.2s;
}

.loginform-checkbox-text a:hover {
    color: #333;
    text-decoration: none;
}