/* ============================================================
   fields.css — стили для полей ввода (минималистичные)
   ============================================================ */

.field-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.field-group-icon {
    position: relative;
}

.field-group-icon i {
    position: absolute;
    left: 0;
    bottom: 6px;
    color: rgba(255, 255, 255);
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

.field-group-icon:focus-within i {
    color: rgba(255, 255, 255);
}

.form-field-input {
    width: 100%;
    padding: 4px 0 4px 32px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255);
    border-radius: 0;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
    height: 24px;
    line-height: 1.2;
}

.form-field-input:focus {
    border-bottom-color: rgba(255, 255, 255);
    background: transparent;
    box-shadow: none;
}

.form-field-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

.field-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Стили для полей с иконкой слева */
.field-group-icon .form-field-input {
    padding-left: 32px;
}

/* Стили для полей с кнопкой показа пароля */
.field-group-password .form-field-input {
    padding-right: 32px;
}

/* Подсказки для пароля */
.field-help {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: left;
    margin-top: 4px;
    padding-left: 4px;
    line-height: 1.4;
}

.field-help ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
}

.field-help li {
    list-style-type: disc;
}

/* Переопределяем стили для автозаполненных полей */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Для Firefox */
input:-moz-autofill {
    background-color: transparent !important;
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}