.wbk_passwordField__field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    margin-bottom: 20px;

    &.wbk_passwordField__field--invalid {
        .wbk_passwordField__input {
            border-color: #dc3545;
        }
    }
}

.wbk_passwordField__inputWrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.wbk_passwordField__input {
    width: 100%;
    padding: 0 50px 0 20px;
    border: 1px solid colors.$field-border;
    background: colors.$field-background;
    border-radius: 8px;
    height: 50px;
    margin: 0;
    font-family: typography.$font-primary;
    font-size: 16px;
    color: #212121;
    transition: border-color 0.2s;

    &:focus {
        @include fields.field-focused-state;
    }

    &:disabled {
        background-color: #f5f5f5;
        border-color: #e0e0e0;
        cursor: not-allowed;
        opacity: 0.6;
    }
}

.wbk_passwordField__eyeButton {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    z-index: 1;

    &:hover {
        opacity: 0.7;
    }

    &:focus {
        outline: none;
    }

    &:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }
}

.wbk_passwordField__eyeIcon {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.wbk_passwordField__errorContainer {
    color: #dc3545;
    font-family: typography.$font-primary;
    font-size: 14px;
    position: absolute;
    bottom: -18px;
    left: 0;
}
